diff cfgparser.c @ 3613:8a82dca566bc

missing 1 byte in array size
author pl
date Wed, 19 Dec 2001 13:15:49 +0000
parents f61dcc63be5f
children 00bd914b6fb1
line wrap: on
line diff
--- a/cfgparser.c	Wed Dec 19 13:03:22 2001 +0000
+++ b/cfgparser.c	Wed Dec 19 13:15:49 2001 +0000
@@ -249,8 +249,8 @@
 			if (param == NULL)
 				goto err_missing_param;
 
-			subparam = malloc(strlen(param));
-			subopt = malloc(strlen(param));
+			subparam = malloc(strlen(param)+1);
+			subopt = malloc(strlen(param)+1);
 
 			subconf = conf[i].p;
 			for (subconf_optnr = 0; subconf[subconf_optnr].name != NULL; subconf_optnr++)