mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Fix snprintf() buffer length issues for Doom Classic on linux with gcc 12 compiler
(cherry picked from commit c9212b9554edeccdf2ba1edc430727fd8f1f1f42)
This commit is contained in:
parent
fc42078ccf
commit
9858ab99f7
2 changed files with 2 additions and 2 deletions
2
doomclassic/doom/f_finale.cpp
Normal file → Executable file
2
doomclassic/doom/f_finale.cpp
Normal file → Executable 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
2
doomclassic/doom/hu_stuff.cpp
Normal file → Executable 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;
|
||||
|
|
Loading…
Reference in a new issue