diff options
author | Simon Howard | 2014-03-30 19:00:49 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-30 19:00:49 -0400 |
commit | 01ae851bf998330a9ca95467e238c507aa55cae1 (patch) | |
tree | 3fe17da2cdd49ea725c7a6d044ca4885ce024401 /src/hexen/p_setup.c | |
parent | 6bb5f78bd2bdf10ddbb087171c6f640d425c9d40 (diff) | |
download | chocolate-doom-01ae851bf998330a9ca95467e238c507aa55cae1.tar.gz chocolate-doom-01ae851bf998330a9ca95467e238c507aa55cae1.tar.bz2 chocolate-doom-01ae851bf998330a9ca95467e238c507aa55cae1.zip |
hexen: Eliminate use of sprintf().
Use snprintf() in place of sprintf(). This is part of fixing #371.
Diffstat (limited to 'src/hexen/p_setup.c')
-rw-r--r-- | src/hexen/p_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hexen/p_setup.c b/src/hexen/p_setup.c index 8940dd32..cd075651 100644 --- a/src/hexen/p_setup.c +++ b/src/hexen/p_setup.c @@ -700,7 +700,7 @@ void P_SetupLevel(int episode, int map, int playermask, skill_t skill) P_InitThinkers(); leveltime = 0; - sprintf(lumpname, "MAP%02d", map); + snprintf(lumpname, sizeof(lumpname), "MAP%02d", map); lumpnum = W_GetNumForName(lumpname); // // Begin processing map lumps |