changeset 158:05e9c8083922

parameter reading fixed in parse_config_file
author szabii
date Mon, 19 Mar 2001 13:12:48 +0000
parents d3de96f3b72a
children 8e9b6c00756f
files cfgparser.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Mon Mar 19 13:11:31 2001 +0000
+++ b/cfgparser.c	Mon Mar 19 13:12:48 2001 +0000
@@ -257,7 +257,8 @@
 			++line_pos;
 
 		/* read the parameter */
-		for (param_pos = 0; isalnum(line[line_pos]); /* NOTHING */) {
+		for (param_pos = 0; isprint(line[line_pos]) && !isspace(line[line_pos]);
+				/* NOTHING */) {
 			param[param_pos++] = line[line_pos++];
 			if (param_pos >= MAX_PARAM_LEN) {
 				PRINT_LINENUM;