Allow digits in variable names

This commit is contained in:
Michael Spang 2009-07-29 16:14:52 -04:00
parent 5ce11709ff
commit 1c8e247732
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static void parse_name(struct config_file *file, char *name, size_t maxlen) {
break;
}
if (!isalpha(c) && c != '_' && c != '-') {
if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-') {
unparse_char(file, c);
break;
}