Fix for string length when mallocing space for copy.
This commit is contained in:
parent
bdde218bfa
commit
27f71ab1cc
1 changed files with 1 additions and 1 deletions
|
|
@ -15347,7 +15347,7 @@ static wchar_t * uppercase_w(wchar_t * str)
|
|||
wchar_t * ustr;
|
||||
unsigned int i;
|
||||
|
||||
ustr = (wchar_t *) malloc(sizeof(wchar_t) * wcslen(str));
|
||||
ustr = (wchar_t *) malloc(sizeof(wchar_t) * (wcslen(str)+1));
|
||||
|
||||
if (ustr != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue