Fix snprintf() buffer length issues for Doom Classic on linux with gcc 12 compiler

(cherry picked from commit c9212b9554edeccdf2ba1edc430727fd8f1f1f42)
This commit is contained in:
Stephen Saunders 2022-10-17 21:01:58 -04:00
parent fc42078ccf
commit 9858ab99f7
2 changed files with 2 additions and 2 deletions

2
doomclassic/doom/f_finale.cpp Normal file → Executable file
View file

@ -830,7 +830,7 @@ void F_BunnyScroll( void )
int x;
patch_t* p1;
patch_t* p2;
const size_t name_len = 10;
const size_t name_len = 14;
char name[name_len];
int stage;

2
doomclassic/doom/hu_stuff.cpp Normal file → Executable file
View file

@ -319,7 +319,7 @@ void HU_Init( void )
int i;
int j;
const size_t buffer_len = 9;
const size_t buffer_len = 17;
char buffer[buffer_len];
shiftxform = english_shiftxform;