diff options
Diffstat (limited to 'lib/util/genrand.c')
-rw-r--r-- | lib/util/genrand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/genrand.c b/lib/util/genrand.c index 1519931222..8c7d88a112 100644 --- a/lib/util/genrand.c +++ b/lib/util/genrand.c @@ -407,7 +407,7 @@ _PUBLIC_ char** generate_unique_strs(TALLOC_CTX *mem_ctx, size_t len, strs = talloc_array(mem_ctx, char *, num); for (i = 0; i < num; i++) { - char *retstr = talloc_zero_size(mem_ctx, len + 1); + char *retstr = (char *)talloc_zero_size(mem_ctx, len + 1); rem = i; for (j = len - 1; j >= 0; j--) { place = s_pow(c_size, j); |