From c32bae1a240ce5f5a99dbb31d4f0646c6b39ac22 Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Thu, 19 Feb 2026 09:42:41 -0500 Subject: [PATCH] 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. --- VERSION | 2 +- database/DBio.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index cad58401..b405596d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.605 +8.3.606 diff --git a/database/DBio.c b/database/DBio.c index 30c49176..c18a2175 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -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);