mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
Fix incorrect strncpy in S_AL_StartBackgroundTrack
Error is loop argument is NULL. Ensure that s_backgroundTrack is a null terminated string.
This commit is contained in:
parent
4e029b1f6b
commit
4fb053b8e7
1 changed files with 1 additions and 1 deletions
|
@ -2115,7 +2115,7 @@ void S_AL_StartBackgroundTrack( const char *intro, const char *loop )
|
||||||
issame = qfalse;
|
issame = qfalse;
|
||||||
|
|
||||||
// Copy the loop over
|
// Copy the loop over
|
||||||
strncpy( s_backgroundLoop, loop, sizeof( s_backgroundLoop ) );
|
Q_strncpyz( s_backgroundLoop, loop, sizeof( s_backgroundLoop ) );
|
||||||
|
|
||||||
if(!issame)
|
if(!issame)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue