diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/talloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 7bfabdd88d..1e9c0759db 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -178,7 +178,7 @@ char *talloc_asprintf(TALLOC_CTX *t, const char *fmt, ...) len = vsnprintf(NULL, 0, fmt, ap); va_end(ap); - ret = talloc(t, len); + ret = talloc(t, len+1); if (!ret) return NULL; va_start(ap, fmt); |