From 8e458dd08e92e010a37ef961b75d01ef0615e22c Mon Sep 17 00:00:00 2001 From: leca Date: Sat, 21 Dec 2024 18:02:02 +0300 Subject: [PATCH] remove void* to char* cast --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 47cbb87..234b5f2 100644 --- a/main.c +++ b/main.c @@ -43,7 +43,7 @@ Garland generate_garland(unsigned int length) { } strncpy(color+7, "#\0", 2); - g.lightbulbs[i] = (char*) malloc(9); + g.lightbulbs[i] = malloc(9); strncpy(g.lightbulbs[i], color, 9); free(color); color = NULL;