summaryrefslogtreecommitdiff
path: root/source4/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param/loadparm.c')
-rw-r--r--source4/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index da23dd02ef..526ec8b85b 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -1086,7 +1086,7 @@ static const char *lp_string(const char *s)
if (!lp_talloc)
lp_talloc = talloc_init("lp_talloc");
- ret = (char *)talloc(lp_talloc, len + 100); /* leave room for substitution */
+ ret = talloc_array_p(lp_talloc, char, len + 100); /* leave room for substitution */
if (!ret)
return NULL;