Corrected a minor error from yesterday's commit that will cause

magic to complain about reading GDS_START and GDS_END properties
from a .mag file, although its fallback method handles the properties
correctly, anyway, so there is no actual impact other than the
error message.
This commit is contained in:
R. Timothy Edwards 2026-02-19 09:42:41 -05:00
parent 0c913eca59
commit c32bae1a24
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
8.3.605
8.3.606

View File

@ -2635,9 +2635,9 @@ dbReadProperties(cellDef, line, len, f, scalen, scaled)
(!strncmp(propertyname, "GDS_BEGIN", 9)) ||
(!strncmp(propertyname, "GDS_END", 7)))
{
if (sscanf(pvalueptr, "%"DLONG_PREFIX"d", &dval) == 1)
if (sscanf(pvalueptr, "%"DLONG_PREFIX"d", &dval) != 1)
{
TxError("Cannot read file offset value in %s property",
TxError("Cannot read file offset value in %s property\n",
propertyname);
/* Unable to parse correctly. Save as a string value */
proplen = strlen(pvalueptr);