summaryrefslogtreecommitdiff
path: root/src/strife/m_menu.c
diff options
context:
space:
mode:
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);
}