From 5aec94bd60e2c4b28084644ab049222f7d65b62d Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 10 Apr 2019 01:00:55 +0000 Subject: [PATCH] SW: Fix more -Wformat-overflow git-svn-id: https://svn.eduke32.com/eduke32@7560 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/game.cpp | 2 +- source/sw/src/menus.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 5468b1f2c..672a08bf5 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -261,7 +261,7 @@ extern int bufferjitter; SWBOOL CameraTestMode = FALSE; -char ds[256]; // debug string +char ds[512]; // debug string extern short NormalVisibility; diff --git a/source/sw/src/menus.cpp b/source/sw/src/menus.cpp index 1897c5aad..03e6ac0ff 100644 --- a/source/sw/src/menus.cpp +++ b/source/sw/src/menus.cpp @@ -59,7 +59,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms short TimeLimitTable[9] = {0,3,5,10,15,20,30,45,60}; short QuickLoadNum = -1; -char QuickLoadDescrDialog[32]; +char QuickLoadDescrDialog[128]; SWBOOL QuickSaveMode = FALSE; SWBOOL SavePrompt = FALSE; extern SWBOOL InMenuLevel, LoadGameOutsideMoveLoop, LoadGameFromDemo; @@ -2989,7 +2989,7 @@ MNU_LoadSaveDraw(UserCall call, MenuItem_p item) if (i == game_num && MenuInputMode && !SavePrompt) { static SWBOOL cur_show; - char tmp[sizeof(SaveGameDescr[0])]; + char tmp[sizeof(SaveGameDescr[0])*2]; //cur_show ^= 1; cur_show = (totalclock & 32);