summaryrefslogtreecommitdiff
path: root/src/strife/m_menu.c
diff options
context:
space:
mode:
authorSimon Howard2010-09-13 18:47:36 +0000
committerSimon Howard2010-09-13 18:47:36 +0000
commit61e1333c1d39b26c41478df92307543f379e6746 (patch)
tree32bfb922b9f747ffadbd75eb75033d1042461a50 /src/strife/m_menu.c
parent7298899199a5bb750c66c4b52227e9e979f8d260 (diff)
downloadchocolate-doom-61e1333c1d39b26c41478df92307543f379e6746.tar.gz
chocolate-doom-61e1333c1d39b26c41478df92307543f379e6746.tar.bz2
chocolate-doom-61e1333c1d39b26c41478df92307543f379e6746.zip
Use DEH_snprintf where appropriate.
Subversion-branch: /branches/strife-branch Subversion-revision: 2083
Diffstat (limited to 'src/strife/m_menu.c')
-rw-r--r--src/strife/m_menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strife/m_menu.c b/src/strife/m_menu.c
index d6e6b44c..8fc049a5 100644
--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -1110,7 +1110,7 @@ void M_QuitResponse(int key)
I_Quit();
else
{
- sprintf(buffer, DEH_String("qfmrm%i"), gametic % 8 + 1);
+ DEH_snprintf(buffer, sizeof(buffer), "qfmrm%i", gametic % 8 + 1);
I_StartVoice(buffer);
D_QuitGame();
}
@@ -1132,8 +1132,8 @@ static char *M_SelectEndMessage(void)
//
void M_QuitStrife(int choice)
{
- sprintf(endstring,
- DEH_String("Do you really want to leave?\n\n" DOSY));
+ DEH_snprintf(endstring, sizeof(endstring),
+ "Do you really want to leave?\n\n" DOSY);
M_StartMessage(endstring, M_QuitResponse, true);
}