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 b9a2f7343e..262219bdaf 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -182,7 +182,7 @@ char *talloc_asprintf(TALLOC_CTX *t, const char *fmt, ...) if (!ret) return NULL; va_start(ap, fmt); - vsnprintf(ret, len, fmt, ap); + vsnprintf(ret, len+1, fmt, ap); va_end(ap); return ret; |