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:
hendricks266 2019-04-08 06:28:31 +00:00 committed by Christoph Oelckers
parent e4975c522b
commit d97f1ed79e
2 changed files with 2 additions and 2 deletions

View file

@ -2282,7 +2282,7 @@ ExtGetSpriteCaption(short spritenum)
{
SPRITEp sp = &sprite[spritenum];
const char *p = "";
char name[64];
char name[66];
char tp[30];
char multi_str[30] = "";
int16_t data;

View file

@ -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))
{