diff options
Diffstat (limited to 'source4/lib/util_str.c')
-rw-r--r-- | source4/lib/util_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/util_str.c b/source4/lib/util_str.c index a6f54f9a8d..a66a363c17 100644 --- a/source4/lib/util_str.c +++ b/source4/lib/util_str.c @@ -1452,7 +1452,7 @@ BOOL add_string_to_array(TALLOC_CTX *mem_ctx, { char *dup_str = talloc_strdup(mem_ctx, str); - *strings = talloc_realloc(mem_ctx, *strings, + *strings = talloc_realloc(*strings, ((*num)+1) * sizeof(**strings)); if ((*strings == NULL) || (dup_str == NULL)) |