summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-13 17:25:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:43 -0500
commitd0de93ca762e8b59f09c2179448188c9952f68fc (patch)
treedb2c9494afb214b1b4fe245ec9717d57d436fad2 /source3
parent1a292def316a3d464dd4ad66dc23aa7cbde33b20 (diff)
downloadsamba-d0de93ca762e8b59f09c2179448188c9952f68fc.tar.gz
samba-d0de93ca762e8b59f09c2179448188c9952f68fc.tar.xz
samba-d0de93ca762e8b59f09c2179448188c9952f68fc.zip
r25136: When tallocing a string to uppercase remember the terminating
'\0' in size calculations. Jeremy. (This used to be commit 54c658867db3b6c602080d60936abab3af26e112)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/charcnv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 4a2e768d05a..c481c9a7e2c 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -841,7 +841,7 @@ char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *s)
TALLOC_FREE(out_buffer);
size = convert_string_talloc(ctx, CH_UNIX, CH_UTF16LE,
- s, strlen(s),
+ s, strlen(s)+1,
(void *)&ubuf,
True);
if (size == (size_t)-1) {