mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
SW: Fix -Wformat-overflow and -Wstringop-overflow
git-svn-id: https://svn.eduke32.com/eduke32@7534 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e4975c522b
commit
d97f1ed79e
2 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ PlaySong(char *song_file_name, int cdaudio_track, SWBOOL loop, SWBOOL restart)
|
|||
for (i = 0; i < ARRAY_SIZE(tracktypes); ++i)
|
||||
{
|
||||
waveformtrack[tracknamebaselen] = '\0';
|
||||
Bstrncat(waveformtrack, tracktypes[i], MAXWAVEFORMTRACKLENGTH);
|
||||
Bstrncat(waveformtrack, tracktypes[i], MAXWAVEFORMTRACKLENGTH - 1);
|
||||
|
||||
if (LoadSong(waveformtrack))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue