summaryrefslogtreecommitdiff
path: root/src/client/snd_openal.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2015-02-05 04:30:07 -0600
committerTim Angus <tim@ngus.net>2015-03-17 11:43:05 +0000
commit1895b3a1bcf6fd569a74f9a0eaf516363acf9a8f (patch)
tree58f6f04ce0b6fe93fe63ee47a762d0c15910ae67 /src/client/snd_openal.c
parent05114d86c8eed99141814477c82dbba8447166a2 (diff)
Fix incorrect strncpy in S_AL_StartBackgroundTrack
Error is loop argument is NULL. Ensure that s_backgroundTrack is a null terminated string.
Diffstat (limited to 'src/client/snd_openal.c')
-rw-r--r--src/client/snd_openal.c2
1 files changed, 1 insertions, 1 deletions
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)
{