From 26e0629e9c2826945b9c9dc8791bef478629a114 Mon Sep 17 00:00:00 2001 From: fpeters <> Date: Fri, 1 Apr 2005 17:18:41 +0000 Subject: [PATCH] fixed underallocating malloc --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 8045120..7427a72 100644 --- a/src/utils.c +++ b/src/utils.c @@ -71,7 +71,7 @@ char** urlencoded_to_strings(char *str) st++; } - result = malloc(sizeof(char*)*n+1); + result = malloc(sizeof(char*)*(n+1)); result[n] = NULL; st = str;