summaryrefslogtreecommitdiff
path: root/src/p_setup.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/p_setup.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/p_setup.c')
-rw-r--r--src/p_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p_setup.c b/src/p_setup.c
index 58edc6fd..7d9d4318 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -774,9 +774,9 @@ P_SetupLevel
if ( gamemode == commercial)
{
if (map<10)
- sprintf (lumpname, DEH_String("map0%i"), map);
+ DEH_snprintf(lumpname, 9, "map0%i", map);
else
- sprintf (lumpname, DEH_String("map%i"), map);
+ DEH_snprintf(lumpname, 9, "map%i", map);
}
else
{