summaryrefslogtreecommitdiff
path: root/src/m_menu.c
diff options
context:
space:
mode:
authorSimon Howard2010-05-01 21:20:30 +0000
committerSimon Howard2010-05-01 21:20:30 +0000
commitda43e27597e40f5a298ed5c4ae785cc1b36510d4 (patch)
tree7bd57a534f9f036695fa0e69136ed8e44dd74cca /src/m_menu.c
parent928963656d68dbface669773eecfb6b22ba15da5 (diff)
downloadchocolate-doom-da43e27597e40f5a298ed5c4ae785cc1b36510d4.tar.gz
chocolate-doom-da43e27597e40f5a298ed5c4ae785cc1b36510d4.tar.bz2
chocolate-doom-da43e27597e40f5a298ed5c4ae785cc1b36510d4.zip
Silence printf(DEH_String(...)) warnings, by providing a DEH_printf
function that checks the format string is a valid replacement. Also add DEH_fprintf and DEH_snprintf functions to use throughout the code to do similar checking. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1927
Diffstat (limited to 'src/m_menu.c')
-rw-r--r--src/m_menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/m_menu.c b/src/m_menu.c
index 1ced1d16..5fb1ae7c 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -729,7 +729,7 @@ void M_QuickSave(void)
quickSaveSlot = -2; // means to pick a slot now
return;
}
- sprintf(tempstring,DEH_String(QSPROMPT),savegamestrings[quickSaveSlot]);
+ DEH_snprintf(tempstring, 80, QSPROMPT, savegamestrings[quickSaveSlot]);
M_StartMessage(tempstring,M_QuickSaveResponse,true);
}
@@ -761,7 +761,7 @@ void M_QuickLoad(void)
M_StartMessage(DEH_String(QSAVESPOT),NULL,false);
return;
}
- sprintf(tempstring,DEH_String(QLPROMPT),savegamestrings[quickSaveSlot]);
+ DEH_snprintf(tempstring, 80, QLPROMPT, savegamestrings[quickSaveSlot]);
M_StartMessage(tempstring,M_QuickLoadResponse,true);
}