1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r25136: When tallocing a string to uppercase remember the terminating

'\0' in size calculations.
Jeremy.
(This used to be commit 54c658867d)
This commit is contained in:
Jeremy Allison 2007-09-13 17:25:57 +00:00 committed by Gerald (Jerry) Carter
parent 1a292def31
commit d0de93ca76

View File

@ -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) {