From 2ea8fd11ec5da77ba66b24c0c2cbee892e803904 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 30 Mar 2014 19:08:27 -0400 Subject: strife: Eliminate use of sprintf(). Use snprintf() in place of sprintf(). This is part of fixing #371. --- src/strife/s_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/strife/s_sound.c') 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); } -- cgit v1.2.3