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:
parent
0c913eca59
commit
c32bae1a24
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue