From 6a08b31149676d7c5ec7d4ba0cd8eb6cef79521a Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Wed, 2 Oct 2024 06:59:00 +0100 Subject: [PATCH] defWrite.: '%.10g' directive writing between 1 and 17 bytes into a region of size 12 GCC14 loud default warnings series [-Wformat-overflow=] --- lef/defWrite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lef/defWrite.c b/lef/defWrite.c index 95835752..8cfb800d 100644 --- a/lef/defWrite.c +++ b/lef/defWrite.c @@ -531,7 +531,7 @@ defWriteRouteWidth(defdata, width) int width; { float oscale = defdata->scale; - char numstr[12]; + char numstr[32]; sprintf(numstr, "%.10g", ((float)width * defdata->scale)); defCheckForBreak(strlen(numstr) + 1, defdata); fprintf(defdata->f, "%s ", numstr); @@ -564,7 +564,7 @@ defWriteCoord(defdata, x, y, orient) unsigned char orient; { FILE *f = defdata->f; - char numstr[12]; + char numstr[32]; int ctot = 4; /* The "12" here is just a fudge factor; it is not crucial */