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]
This commit is contained in:
Darryl L. Miles 2024-10-04 18:49:38 +01:00 committed by Tim Edwards
parent ef48e40f39
commit 4460c5f1f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;