diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-09-18 13:31:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:06:55 -0500 |
commit | 68256289a4a9326544748fb21ea1a2b018e6711d (patch) | |
tree | 19fd6db59b3ba6e0a24f9f5a0ec5039039161abb /source4/utils | |
parent | f35373709444780c4bf338c17b26ce9cc3ebab50 (diff) | |
download | samba-68256289a4a9326544748fb21ea1a2b018e6711d.tar.gz samba-68256289a4a9326544748fb21ea1a2b018e6711d.tar.bz2 samba-68256289a4a9326544748fb21ea1a2b018e6711d.zip |
r25213: use talloc_strdup_append_buffer() instead of talloc_append_string()
metze
(This used to be commit d0306ed16b55034f48cb514ea1f4dcd1d388ac50)
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/ntlm_auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index 6055670d77..72bd94e630 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -902,8 +902,7 @@ static void manage_squid_request(enum stdio_helper_mode helper_mode, static void *normal_private; void **private; - buf = talloc(NULL, char); - buf[0] = '\0'; + buf = talloc_strdup(NULL, ""); if (buf == NULL) { DEBUG(0, ("Failed to allocate memory for reading the input " @@ -926,7 +925,7 @@ static void manage_squid_request(enum stdio_helper_mode helper_mode, exit(0); } - buf = talloc_append_string(buf, buf, tmp); + buf = talloc_strdup_append_buffer(buf, tmp); buf_size += INITIAL_BUFFER_SIZE; if (buf_size > MAX_BUFFER_SIZE) { |