mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
graphics: windowname[] potential buffer overrun warning
GCC14 loud default warnings series
This commit is contained in:
committed by
Tim Edwards
parent
63256f1a44
commit
65a0dc45dc
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user