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.
This commit is contained in:
Tim Edwards 2022-11-03 16:15:36 -04:00
parent 075262b2ef
commit d4529937fc
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8.3.334
8.3.335

View File

@ -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 */