changeset 3613:8a82dca566bc

missing 1 byte in array size
author pl
date Wed, 19 Dec 2001 13:15:49 +0000
parents a1522fa7728a
children 6fef049b8fe4
files cfgparser.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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++)