diff options
author | Simon Howard | 2014-03-30 18:21:42 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-30 18:21:42 -0400 |
commit | 4465be140a27e47aa8bed15be4e58064297c7d94 (patch) | |
tree | f27954337910f277d7883feab70e6b2a1fc421b6 /src/doom/m_menu.c | |
parent | e56c9c948df1ad0e2ff2b64d8593caefbf98fd11 (diff) | |
download | chocolate-doom-4465be140a27e47aa8bed15be4e58064297c7d94.tar.gz chocolate-doom-4465be140a27e47aa8bed15be4e58064297c7d94.tar.bz2 chocolate-doom-4465be140a27e47aa8bed15be4e58064297c7d94.zip |
doom: Eliminate use of sprintf().
Use snprintf() or other functions in place of sprintf(). This is part
of fixing #371.
Diffstat (limited to 'src/doom/m_menu.c')
-rw-r--r-- | src/doom/m_menu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c index 1fde34ba..a0581579 100644 --- a/src/doom/m_menu.c +++ b/src/doom/m_menu.c @@ -1192,10 +1192,9 @@ static char *M_SelectEndMessage(void) void M_QuitDOOM(int choice) { - sprintf(endstring, - DEH_String("%s\n\n" DOSY), - DEH_String(M_SelectEndMessage())); - + DEH_snprintf(endstring, sizeof(endstring), "%s\n\n" DOSY, + DEH_String(M_SelectEndMessage())); + M_StartMessage(endstring,M_QuitResponse,true); } |