changeset 43:9b309701420e

welcome to Ctec and will it compile? that is the question
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Fri, 20 May 2022 06:27:30 -0400
parents d873a04165f9
children 4f005d28d912
files src/main.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c	Fri May 13 00:48:11 2022 -0400
+++ b/src/main.c	Fri May 20 06:27:30 2022 -0400
@@ -149,8 +149,9 @@
 	}
 	fflush(stdout);
 	if (strcmp(args.output, " ") == 0) { /* string manipulation hell */
-		char temp[256] = (char*)malloc(sizeof(char)*256);
-		char str_version[16] = {};
+		char temp* = (char*)malloc(sizeof(char)*256);
+		temp[0] = '\0';
+		char str_version[16];
 		sprintf(str_version, "V%d", args.version);
 		strncat(temp, str_version, 2);
 		strncat(temp, "_", 1);