diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/util_strlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_strlist.c b/lib/util/util_strlist.c index 1331fee6a7..8d69eef233 100644 --- a/lib/util/util_strlist.c +++ b/lib/util/util_strlist.c @@ -401,7 +401,7 @@ _PUBLIC_ const char **str_list_unique(const char **list) } } list[j] = NULL; - list = talloc_realloc(NULL, list, const char *, j); + list = talloc_realloc(NULL, list, const char *, j + 1); talloc_free(list2); return list; } |