From 90b9b84797a7a0ccfe5c4d505e2f6c75811258b9 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Mon, 12 Jun 2017 09:36:14 -0700 Subject: [PATCH] Clean up function argument. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.c b/misc.c index 6dd24e0..3960347 100644 --- a/misc.c +++ b/misc.c @@ -138,7 +138,7 @@ void newspeak(char* msg) // Render the final string. char rendered[2000]; // FIXME: to be replaced with dynamic allocation - sprintf((char *)&rendered, copy, parameters[1], parameters[2], parameters[3], parameters[4]); // FIXME: to be replaced with vsprintf() + sprintf(rendered, copy, parameters[1], parameters[2], parameters[3], parameters[4]); // FIXME: to be replaced with vsprintf() // Print the message. printf("%s\n", rendered); -- 2.31.1