changeset 191:aa52cdb712d8

fix TYPE_FLOAT parameter reading
author szabii
date Thu, 22 Mar 2001 15:25:28 +0000
parents a8552ad553e0
children f5728d824638
files cfgparser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Thu Mar 22 01:57:58 2001 +0000
+++ b/cfgparser.c	Thu Mar 22 15:25:28 2001 +0000
@@ -141,7 +141,7 @@
 		case CONF_TYPE_FLOAT:
 			if (param == NULL)
 				goto err_missing_param;
-			if (!isdigit(*param)) {
+			if (!isdigit(*param) && *param != '-' && *param != '.') {
 				printf("parameter must be a floating point number:\n");
 				ret = ERR_MISSING_PARAM;
 				goto out;