svn commit: samba r20649 - in
branches/SAMBA_4_0/source/lib/charset: .
tridge at samba.org
tridge at samba.org
Wed Jan 10 11:47:28 GMT 2007
Author: tridge
Date: 2007-01-10 11:47:27 +0000 (Wed, 10 Jan 2007)
New Revision: 20649
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20649
Log:
fixed strlower_talloc() and strupper_talloc() to end with right size,
so talloc_append_string() works
Modified:
branches/SAMBA_4_0/source/lib/charset/util_unistr.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/charset/util_unistr.c
===================================================================
--- branches/SAMBA_4_0/source/lib/charset/util_unistr.c 2007-01-10 11:43:50 UTC (rev 20648)
+++ branches/SAMBA_4_0/source/lib/charset/util_unistr.c 2007-01-10 11:47:27 UTC (rev 20649)
@@ -510,6 +510,9 @@
dest[size] = 0;
+ /* trim it so talloc_append_string() works */
+ dest = talloc_realloc_size(ctx, dest, size+1);
+
return dest;
}
@@ -549,6 +552,9 @@
dest[size] = 0;
+ /* trim it so talloc_append_string() works */
+ dest = talloc_realloc_size(ctx, dest, size+1);
+
return dest;
}
More information about the samba-cvs
mailing list