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

This commit is contained in:
Albert Cahalan 2004-12-28 04:47:51 +00:00
parent 0d8f741ee6
commit e03471ceb4

View file

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