C language standard: sizeof char is 1 and void* needs no cast
This commit is contained in:
parent
0d8f741ee6
commit
e03471ceb4
1 changed files with 1 additions and 1 deletions
|
|
@ -13716,7 +13716,7 @@ static unsigned char * textdir(const unsigned char * const str)
|
|||
printf("ORIG_DIR: %s\n", str);
|
||||
#endif
|
||||
|
||||
dstr = (unsigned char *) malloc((strlen(str) + 5) * sizeof(unsigned char));
|
||||
dstr = malloc(strlen(str) + 5);
|
||||
|
||||
if (need_right_to_left)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue