From edf2f42e573532def13105169806caeff477f0c6 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Tue, 28 Dec 2004 05:45:17 +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 b5fbdb764..076646b08 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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) {