From: Jason S. Ninneman Date: Mon, 12 Jun 2017 16:36:14 +0000 (-0700) Subject: Clean up function argument. X-Git-Tag: 1.1~376 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=90b9b84797a7a0ccfe5c4d505e2f6c75811258b9;p=open-adventure.git Clean up function argument. --- 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);