diff options
Diffstat (limited to 'src/argparser.c')
-rw-r--r-- | src/argparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |