graphics: windowname[] potential buffer overrun warning

GCC14 loud default warnings series
This commit is contained in:
Darryl L. Miles 2024-10-02 06:59:00 +01:00 committed by Tim Edwards
parent 63256f1a44
commit 65a0dc45dc
3 changed files with 3 additions and 3 deletions

View File

@ -1079,7 +1079,7 @@ char *name;
static int WindowNumber = 0;
HashEntry *entry;
char *windowplace;
char windowname[10];
char windowname[32];
int x = w->w_frameArea.r_xbot;
int y = grTransYs(w->w_frameArea.r_ytop);
int width = w->w_frameArea.r_xtop - w->w_frameArea.r_xbot;

View File

@ -1081,7 +1081,7 @@ GrTOGLCreate(w, name)
static int WindowNumber = 0;
HashEntry *entry;
char *windowplace;
char windowname[10];
char windowname[32];
int x = w->w_frameArea.r_xbot;
int y = glTransYs(w->w_frameArea.r_ytop);
int width = w->w_frameArea.r_xtop - w->w_frameArea.r_xbot;

View File

@ -1308,7 +1308,7 @@ GrTkCreate(w, name)
static int WindowNumber = 0;
HashEntry *entry;
char *windowplace;
char windowname[10];
char windowname[32];
int x = w->w_frameArea.r_xbot;
int y = grMagicToXs(w->w_frameArea.r_ytop);
int width = w->w_frameArea.r_xtop - w->w_frameArea.r_xbot;