summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/lib/charcnv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c
index 4a2e768d05a..c481c9a7e2c 100644
--- a/source/lib/charcnv.c
+++ b/source/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) {