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:
parent
1a292def31
commit
d0de93ca76
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user