Clean up function argument.
This commit is contained in:
parent
ca0e042952
commit
90b9b84797
1 changed files with 1 additions and 1 deletions
2
misc.c
2
misc.c
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue