Fix missing string copy in uppercase_w().
This commit is contained in:
parent
d6b2349f70
commit
bdde218bfa
1 changed files with 1 additions and 1 deletions
|
|
@ -15347,11 +15347,11 @@ static wchar_t * uppercase_w(wchar_t * str)
|
|||
wchar_t * ustr;
|
||||
unsigned int i;
|
||||
|
||||
//ustr = wcsdup(str);
|
||||
ustr = (wchar_t *) malloc(sizeof(wchar_t) * wcslen(str));
|
||||
|
||||
if (ustr != NULL)
|
||||
{
|
||||
wcscpy(ustr, str);
|
||||
if (only_uppercase)
|
||||
{
|
||||
for (i = 0; i < wcslen(ustr); i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue