grouteCrss.c: '%s' directive writing up to 1023 bytes into a region of size 227

GCC14 loud default warnings series [-Wformat-overflow=]
This commit is contained in:
Darryl L. Miles 2024-10-02 06:59:00 +01:00 committed by Tim Edwards
parent 6a08b31149
commit 1c326c9141
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ glCrossTakePin(rootUse, pin, netid)
GCRPin *pin; /* Pin to take */
NetId netid; /* Identifier to assign */
{
char c[256], name1[1024], name2[1024];
char c[2048+64], name1[1024], name2[1024];
Rect r;
if (DebugIsSet(glDebugID, glDebGreedy))