Fix for string length when mallocing space for copy.

This commit is contained in:
John Popplewell 2006-01-17 21:25:59 +00:00
parent bdde218bfa
commit 27f71ab1cc

View file

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