diff options
author | Jeremy Allison <jra@samba.org> | 2007-09-13 17:25:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:43 -0500 |
commit | d0de93ca762e8b59f09c2179448188c9952f68fc (patch) | |
tree | db2c9494afb214b1b4fe245ec9717d57d436fad2 | |
parent | 1a292def316a3d464dd4ad66dc23aa7cbde33b20 (diff) | |
download | samba-d0de93ca762e8b59f09c2179448188c9952f68fc.tar.gz samba-d0de93ca762e8b59f09c2179448188c9952f68fc.tar.bz2 samba-d0de93ca762e8b59f09c2179448188c9952f68fc.zip |
r25136: When tallocing a string to uppercase remember the terminating
'\0' in size calculations.
Jeremy.
(This used to be commit 54c658867db3b6c602080d60936abab3af26e112)
-rw-r--r-- | source3/lib/charcnv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 4a2e768d05..c481c9a7e2 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) { |