Clean up function argument.

This commit is contained in:
Jason S. Ninneman 2017-06-12 09:36:14 -07:00 committed by Eric S. Raymond
parent ca0e042952
commit 90b9b84797

2
misc.c
View file

@ -138,7 +138,7 @@ void newspeak(char* msg)
// Render the final string. // Render the final string.
char rendered[2000]; // FIXME: to be replaced with dynamic allocation 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. // Print the message.
printf("%s\n", rendered); printf("%s\n", rendered);