C language standard: sizeof char is 1 and void* needs no cast
This commit is contained in:
parent
35329205f9
commit
edf2f42e57
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue