Fix missing string copy in uppercase_w().

This commit is contained in:
John Popplewell 2006-01-17 21:20:20 +00:00
parent d6b2349f70
commit bdde218bfa

View file

@ -15347,11 +15347,11 @@ static wchar_t * uppercase_w(wchar_t * str)
wchar_t * ustr; wchar_t * ustr;
unsigned int i; unsigned int i;
//ustr = wcsdup(str);
ustr = (wchar_t *) malloc(sizeof(wchar_t) * wcslen(str)); ustr = (wchar_t *) malloc(sizeof(wchar_t) * wcslen(str));
if (ustr != NULL) if (ustr != NULL)
{ {
wcscpy(ustr, str);
if (only_uppercase) if (only_uppercase)
{ {
for (i = 0; i < wcslen(ustr); i++) for (i = 0; i < wcslen(ustr); i++)