diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-24 10:28:29 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-24 13:28:44 +0200 |
commit | 8d5e6770f45283091e8ef41b1c4ca39356c1869a (patch) | |
tree | b1111882180a79bf51cf14248aa6cd1ae5afd4e0 /lib/talloc | |
parent | bdeee2202da2560ff8caabae64f92e1b213c647d (diff) | |
download | samba-8d5e6770f45283091e8ef41b1c4ca39356c1869a.tar.gz samba-8d5e6770f45283091e8ef41b1c4ca39356c1869a.tar.bz2 samba-8d5e6770f45283091e8ef41b1c4ca39356c1869a.zip |
talloc: Fix copy&paste errors
Diffstat (limited to 'lib/talloc')
-rw-r--r-- | lib/talloc/talloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index 38e6f21854..e5fd0d2823 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -2019,7 +2019,7 @@ _PUBLIC_ char *talloc_strdup_append_buffer(char *s, const char *a) _PUBLIC_ char *talloc_strndup_append(char *s, const char *a, size_t n) { if (unlikely(!s)) { - return talloc_strdup(NULL, a); + return talloc_strndup(NULL, a, n); } if (unlikely(!a)) { @@ -2038,7 +2038,7 @@ _PUBLIC_ char *talloc_strndup_append_buffer(char *s, const char *a, size_t n) size_t slen; if (unlikely(!s)) { - return talloc_strdup(NULL, a); + return talloc_strndup(NULL, a, n); } if (unlikely(!a)) { |