diff options
author | imp <imp@FreeBSD.org> | 2003-04-26 20:25:40 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-04-26 20:25:40 +0000 |
commit | 02bfd4df0a9a2d2c8862cfc1238029ef8f903c9b (patch) | |
tree | 5fa14e63e8b83f1ab9de9420d2f6565bccedb29e /sbin/devd | |
parent | 8a892a44c5852850564a9e70529f7f82ac49001f (diff) | |
download | FreeBSD-src-02bfd4df0a9a2d2c8862cfc1238029ef8f903c9b.zip FreeBSD-src-02bfd4df0a9a2d2c8862cfc1238029ef8f903c9b.tar.gz |
Update to use is_id_char() in the last patch. I should have done this
before the last commit.
Diffstat (limited to 'sbin/devd')
-rw-r--r-- | sbin/devd/devd.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 21f90d5..df9ba7f 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -515,8 +515,7 @@ config::expand_one(const char *&src, string &dst) // $var -> replace with value do { buffer.append(src++, 1); - } while (*src && isalpha(*src) || isdigit(*src) || *src == '_' || - *src == '-'); + } while (is_id_char(*src)); buffer.append("", 1); varstr = get_variable(buffer.c_str()); dst.append(varstr); |