1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-08 13:49:29 +03:00

talloc: Fix copy&paste errors

This commit is contained in:
Volker Lendecke
2012-04-24 10:28:29 +02:00
parent bdeee2202d
commit 8d5e6770f4

View File

@ -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)) {