C language standard: sizeof char is 1 and void* needs no cast

This commit is contained in:
Albert Cahalan 2004-12-28 05:45:17 +00:00
parent 35329205f9
commit edf2f42e57

View file

@ -13663,7 +13663,7 @@ static char * uppercase(char * str)
dest = (wchar_t *) malloc(sz);
// FIXME: uppercase chars may need extra bytes
ustr = (char *) malloc(sizeof(char) * (strlen(str) + 1));
ustr = malloc(strlen(str) + 1);
if (dest != NULL)
{