diff options
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); |