From e03471ceb4dd75d0230a930124f6133c90ba0573 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Tue, 28 Dec 2004 04:47:51 +0000 Subject: [PATCH] C language standard: sizeof char is 1 and void* needs no cast --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 2d4b62084..79df0c6d4 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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) {