From 38a8a8d3d2f77396caa064f56775287090a2bacb Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Sep 2012 23:01:20 +0200 Subject: talloc: fix strndup group of functions This bug has been fixed years ago in upstream talloc. --- talloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'talloc.c') diff --git a/talloc.c b/talloc.c index 87842c5acd..9b73fc19f0 100644 --- a/talloc.c +++ b/talloc.c @@ -1421,7 +1421,7 @@ char *talloc_strdup_append_buffer(char *s, const char *a) 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)) { @@ -1440,7 +1440,7 @@ 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)) { -- cgit v1.2.3