summaryrefslogtreecommitdiff
path: root/src/strife/s_sound.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-30 19:08:27 -0400
committerSimon Howard2014-03-30 19:08:27 -0400
commit2ea8fd11ec5da77ba66b24c0c2cbee892e803904 (patch)
treeeed48a3b6ce007c54671099c33a041a081609681 /src/strife/s_sound.c
parent01ae851bf998330a9ca95467e238c507aa55cae1 (diff)
downloadchocolate-doom-2ea8fd11ec5da77ba66b24c0c2cbee892e803904.tar.gz
chocolate-doom-2ea8fd11ec5da77ba66b24c0c2cbee892e803904.tar.bz2
chocolate-doom-2ea8fd11ec5da77ba66b24c0c2cbee892e803904.zip
strife: Eliminate use of sprintf().
Use snprintf() in place of sprintf(). This is part of fixing #371.
Diffstat (limited to 'src/strife/s_sound.c')
-rw-r--r--src/strife/s_sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strife/s_sound.c b/src/strife/s_sound.c
index ab8ffdd3..861586fe 100644
--- a/src/strife/s_sound.c
+++ b/src/strife/s_sound.c
@@ -788,7 +788,7 @@ void S_ChangeMusic(int musicnum, int looping)
// get lumpnum if neccessary
if (!music->lumpnum)
{
- sprintf(namebuf, "d_%s", DEH_String(music->name));
+ snprintf(namebuf, sizeof(namebuf), "d_%s", DEH_String(music->name));
music->lumpnum = W_GetNumForName(namebuf);
}