diff options
-rw-r--r-- | proxy/src/gp_config_dinglibs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy/src/gp_config_dinglibs.c b/proxy/src/gp_config_dinglibs.c index 3fc0076..cf6c7bd 100644 --- a/proxy/src/gp_config_dinglibs.c +++ b/proxy/src/gp_config_dinglibs.c @@ -144,7 +144,7 @@ int gp_dinglibs_get_string_array(struct gp_ini_context *ctx, goto done; } - array = realloc(array, count); + array = realloc(array, (count+1) * sizeof(char *)); if (array == NULL) { ret = ENOMEM; goto done; |