Fix array sizes that GCC 12 complains about (mostly sprintf)

Origin commit data
------------------
Commit: 06b4049dc1
Author: Hendi <hendi48@freenet.de>
Date: 2023-01-23 (Mon, 23 Jan 2023)
This commit is contained in:
Hendi
2023-01-23 23:29:31 +01:00
committed by vanhofen
parent 34ef24b914
commit 49090da869
5 changed files with 15 additions and 14 deletions

View File

@@ -1738,7 +1738,7 @@ int tuxtx_main(int pid, int page, int source)
subtitledelay++;
// display subtitledelay
PosY = StartY;
char ns[10];
char ns[18];
SetPosX(1);
sprintf(ns,"+%d ",subtitledelay);
RenderCharFB(ns[0],&atrtable[ATR_WB]);
@@ -1756,7 +1756,7 @@ int tuxtx_main(int pid, int page, int source)
if (subtitledelay < 0) subtitledelay = 0;
// display subtitledelay
PosY = StartY;
char ns[10];
char ns[18];
SetPosX(1);
sprintf(ns,"+%d ",subtitledelay);
RenderCharFB(ns[0],&atrtable[ATR_WB]);