changeset 480:787f2792beeb

now it accepts monitor_hfreq...
author szabii
date Mon, 16 Apr 2001 22:13:12 +0000
parents 1302e63cee73
children 6e8a887c99cd
files cfgparser.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Mon Apr 16 21:53:29 2001 +0000
+++ b/cfgparser.c	Mon Apr 16 22:13:12 2001 +0000
@@ -284,8 +284,11 @@
 		if (line[line_pos] == '\0' || line[line_pos] == '#')
 			continue;
 
-		/* read option. accept char if isalnum(char) */
-		for (opt_pos = 0; isalnum(line[line_pos]); /* NOTHING */) {
+		/* read option. */
+		for (opt_pos = 0; isprint(line[line_pos]) &&
+				line[line_pos] != ' ' &&
+				line[line_pos] != '#' &&
+				line[line_pos] != '='; /* NOTHING */) {
 			opt[opt_pos++] = line[line_pos++];
 			if (opt_pos >= MAX_OPT_LEN) {
 				PRINT_LINENUM;