Skip to content

Commit

Permalink
Fix snprintf() buffer length issues for Doom Classic on linux with gc…
Browse files Browse the repository at this point in the history
…c 12 compiler

(cherry picked from commit c9212b9)
  • Loading branch information
SRSaunders committed Oct 18, 2022
1 parent fc42078 commit 9858ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomclassic/doom/f_finale.cpp 100644 → 100755
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion doomclassic/doom/hu_stuff.cpp 100644 → 100755
Expand Up @@ -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;
Expand Down

0 comments on commit 9858ab9

Please sign in to comment.