summaryrefslogtreecommitdiffstats
path: root/talloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'talloc.c')
-rw-r--r--talloc.c4
1 files changed, 2 insertions, 2 deletions
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)) {