projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ae8585
)
Clean up compiler warnings.
author
Eric S. Raymond
<esr@thyrsus.com>
Sun, 11 Jun 2017 22:57:07 +0000
(18:57 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sun, 11 Jun 2017 22:57:07 +0000
(18:57 -0400)
misc.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index 9da70dc8e447d0d9f04455c4659115bd465b0348..dde006340525739807e6e4c8f9362ce02083726c 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-78,7
+78,7
@@
void newspeak(char* msg)
if (msg[i + 1] == 'd')
{
copy[i + 1] = 's';
if (msg[i + 1] == 'd')
{
copy[i + 1] = 's';
- sprintf(parameters[pi], "%d", PARMS[pi]);
+ sprintf(parameters[pi], "%
l
d", PARMS[pi]);
}
// Unmodified string specifier.
}
// Unmodified string specifier.
@@
-128,7
+128,7
@@
void newspeak(char* msg)
// Render the final string.
char rendered[2000]; // FIXME: to be replaced with dynamic allocation
// Render the final string.
char rendered[2000]; // FIXME: to be replaced with dynamic allocation
- sprintf(&rendered, copy, parameters[1], parameters[2], parameters[3], parameters[4]); // FIXME: to be replaced with vsprintf()
+ sprintf(
(char *)
&rendered, copy, parameters[1], parameters[2], parameters[3], parameters[4]); // FIXME: to be replaced with vsprintf()
// Print the message.
printf("%s\n", rendered);
// Print the message.
printf("%s\n", rendered);