From 18773b6077e77b570cdd6d4dc32e5ab179a0713a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 21 Aug 2013 22:44:44 +0200 Subject: mem fault MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/argparser.c b/src/argparser.c index 7e9fff5..11be506 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -487,7 +487,7 @@ void args_opts_append(char* name, char* value) else { long address = (long)(void*)values; - values = (char**)realloc(values, size); + values = (char**)realloc(values, size * sizeof(char*)); *(values + size - 1) = value; if ((long)(void*)values != address) args_opts_put(name, values); -- cgit v1.2.3-70-g09d2