From 3534b7999480ed97b9311d2dd95231e54577adc5 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 3 Nov 2022 16:15:36 -0400 Subject: [PATCH] Fixed an instance where dbFgets() was used in the "def write" routine; that is incorrect, and it should have been fgets(). When dbFgets() is recast to a zlib version, then its use in "def write" causes magic to crash. --- VERSION | 2 +- lef/defWrite.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 4c837caa..756822b1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.334 +8.3.335 diff --git a/lef/defWrite.c b/lef/defWrite.c index c4a6ef8d..1fa38f0a 100644 --- a/lef/defWrite.c +++ b/lef/defWrite.c @@ -2876,7 +2876,7 @@ DefWriteCell(def, outName, allSpecial, units) freeMagic(filename2); return; } - while (dbFgets(line, sizeof line, f2) != NULL) fprintf(f, "%s", line); + while (fgets(line, sizeof line, f2) != NULL) fprintf(f, "%s", line); fclose(f2); /* Blockages */