From 1895b3a1bcf6fd569a74f9a0eaf516363acf9a8f Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 5 Feb 2015 04:30:07 -0600 Subject: Fix incorrect strncpy in S_AL_StartBackgroundTrack Error is loop argument is NULL. Ensure that s_backgroundTrack is a null terminated string. --- src/client/snd_openal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/snd_openal.c') diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c index fbeafa70..d90e6d23 100644 --- a/src/client/snd_openal.c +++ b/src/client/snd_openal.c @@ -2134,7 +2134,7 @@ void S_AL_StartBackgroundTrack( const char *intro, const char *loop ) issame = qfalse; // Copy the loop over - strncpy( s_backgroundLoop, loop, sizeof( s_backgroundLoop ) ); + Q_strncpyz( s_backgroundLoop, loop, sizeof( s_backgroundLoop ) ); if(!issame) { -- cgit