summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 04:43:53 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 04:43:53 +0000
commit24449a9b0bb83ab511347cde89e15bb67f6997b5 (patch)
treec84118abd4581968122ddd4b3a3a6b35e629ef75 /source3
parentf8abe6eba4cf77eae9306a0fa3b2c7b5d115fd58 (diff)
downloadsamba-24449a9b0bb83ab511347cde89e15bb67f6997b5.tar.gz
samba-24449a9b0bb83ab511347cde89e15bb67f6997b5.tar.bz2
samba-24449a9b0bb83ab511347cde89e15bb67f6997b5.zip
fixed an off by 1 bug in talloc_asprintf()
(This used to be commit 2b2155beaef17a13c0e867c3dcfe8c323e84a9a3)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/talloc.c2
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;