svn commit: samba r20734 - in branches/SAMBA_4_0/source/lib/util: .
metze at samba.org
metze at samba.org
Sat Jan 13 15:39:50 GMT 2007
Author: metze
Date: 2007-01-13 15:39:49 +0000 (Sat, 13 Jan 2007)
New Revision: 20734
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20734
Log:
always terminate the string... so that an empty data_blob
gets '\0' as "" string
metze
Modified:
branches/SAMBA_4_0/source/lib/util/data_blob.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/data_blob.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/data_blob.c 2007-01-13 15:29:47 UTC (rev 20733)
+++ branches/SAMBA_4_0/source/lib/util/data_blob.c 2007-01-13 15:39:49 UTC (rev 20734)
@@ -163,6 +163,7 @@
for (i = 0; i < blob->length; i++)
slprintf(&hex_string[i*2], 3, "%02X", blob->data[i]);
+ hex_string[(blob->length*2)] = '\0';
return hex_string;
}
More information about the samba-cvs
mailing list