From 8d5e6770f45283091e8ef41b1c4ca39356c1869a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Apr 2012 10:28:29 +0200 Subject: [PATCH] talloc: Fix copy&paste errors --- lib/talloc/talloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index 38e6f21854a..e5fd0d28232 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)) { -- 2.11.4.GIT