svn commit: samba r25213 - in branches/SAMBA_4_0/source/utils: .
metze at samba.org
metze at samba.org
Tue Sep 18 13:31:57 GMT 2007
Author: metze
Date: 2007-09-18 13:31:55 +0000 (Tue, 18 Sep 2007)
New Revision: 25213
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25213
Log:
use talloc_strdup_append_buffer() instead of talloc_append_string()
metze
Modified:
branches/SAMBA_4_0/source/utils/ntlm_auth.c
Changeset:
Modified: branches/SAMBA_4_0/source/utils/ntlm_auth.c
===================================================================
--- branches/SAMBA_4_0/source/utils/ntlm_auth.c 2007-09-18 13:31:05 UTC (rev 25212)
+++ branches/SAMBA_4_0/source/utils/ntlm_auth.c 2007-09-18 13:31:55 UTC (rev 25213)
@@ -902,8 +902,7 @@
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 @@
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) {
More information about the samba-cvs
mailing list