mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 01:43:50 +00:00
Fix stringop-truncation warnings for Debian Bookworm builds
This commit is contained in:
parent
940756ad62
commit
95457b8fe0
2 changed files with 2 additions and 2 deletions
|
@ -1185,7 +1185,7 @@ boolean preparefilemenu(boolean samedepth)
|
|||
{
|
||||
if (!filenamebuf[i][0])
|
||||
{
|
||||
strncpy(filenamebuf[i], wadfiles[i]->filename, MAX_WADPATH);
|
||||
strncpy(filenamebuf[i], wadfiles[i]->filename, MAX_WADPATH-1);
|
||||
filenamebuf[i][MAX_WADPATH - 1] = '\0';
|
||||
nameonly(filenamebuf[i]);
|
||||
}
|
||||
|
|
|
@ -2494,11 +2494,11 @@ static void Command_Tunes_f(void)
|
|||
track = (UINT16)atoi(COM_Argv(2))-1;
|
||||
|
||||
strncpy(mapmusname, tunearg, 7);
|
||||
mapmusname[6] = 0;
|
||||
|
||||
if (argc > 4)
|
||||
position = (UINT32)atoi(COM_Argv(4));
|
||||
|
||||
mapmusname[6] = 0;
|
||||
mapmusflags = (track & MUSIC_TRACKMASK);
|
||||
mapmusposition = position;
|
||||
|
||||
|
|
Loading…
Reference in a new issue