diff options
author | Simon Howard | 2010-05-01 21:20:30 +0000 |
---|---|---|
committer | Simon Howard | 2010-05-01 21:20:30 +0000 |
commit | da43e27597e40f5a298ed5c4ae785cc1b36510d4 (patch) | |
tree | 7bd57a534f9f036695fa0e69136ed8e44dd74cca /src/am_map.c | |
parent | 928963656d68dbface669773eecfb6b22ba15da5 (diff) | |
download | chocolate-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/am_map.c')
-rw-r--r-- | src/am_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/am_map.c b/src/am_map.c index 9a81d62c..4c58abdd 100644 --- a/src/am_map.c +++ b/src/am_map.c @@ -515,7 +515,7 @@ void AM_loadPics(void) for (i=0;i<10;i++) { - sprintf(namebuf, DEH_String("AMMNUM%d"), i); + DEH_snprintf(namebuf, 9, "AMMNUM%d", i); marknums[i] = W_CacheLumpName(namebuf, PU_STATIC); } @@ -528,7 +528,7 @@ void AM_unloadPics(void) for (i=0;i<10;i++) { - sprintf(namebuf, DEH_String("AMMNUM%d"), i); + DEH_snprintf(namebuf, 9, "AMMNUM%d", i); W_ReleaseLumpName(namebuf); } } @@ -1035,7 +1035,7 @@ AM_drawFline || fl->b.x < 0 || fl->b.x >= f_w || fl->b.y < 0 || fl->b.y >= f_h) { - fprintf(stderr, DEH_String("fuck %d \r"), fuck++); + DEH_fprintf(stderr, "fuck %d \r", fuck++); return; } |