diff --git a/src/ChangeLog b/src/ChangeLog index d3c81ba0..2a34f958 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-06-28 Hrvoje Niksic + + * init.c (parse_line): Check for alphanumerics. + 2005-06-28 Hrvoje Niksic * progress.c (print_percentage): Round the percentage value. diff --git a/src/init.c b/src/init.c index db2d2742..097a2bfc 100644 --- a/src/init.c +++ b/src/init.c @@ -562,7 +562,7 @@ parse_line (const char *line, char **com, char **val, int *comind) p = line; cmdstart = p; - while (p < end && (ISALPHA (*p) || *p == '_' || *p == '-')) + while (p < end && (ISALNUM (*p) || *p == '_' || *p == '-')) ++p; cmdend = p;