From 4460c5f1f5c93a14aafd66c39988f97829bf878f Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 18:49:38 +0100 Subject: [PATCH] DBio.c: warning: 'sscanf' may overflow; destination buffer in argument ... DBio.c:2358:21: warning: 'sscanf' may overflow; destination buffer in argument 4 has size 2048, but the corresponding specifier may require size 2049 clang18 default warning cleanup [-Wfortify-source] --- database/DBio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/DBio.c b/database/DBio.c index dd54d8f4..e5c8c40b 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -2315,7 +2315,7 @@ dbReadProperties(cellDef, line, len, f, scalen, scaled) int scalen; /* Scale up by this factor */ int scaled; /* Scale down by this factor */ { - char propertyname[128], propertyvalue[2048], *storedvalue; + char propertyname[128], propertyvalue[2049], *storedvalue; char *pvalueptr; int ntok; unsigned int noeditflag;