mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Corrected a problem with "lef read" that prevents it from working
with non-standard extensions such as ".tlef".
This commit is contained in:
@@ -186,6 +186,11 @@ lefFileOpen(def, file, suffix, mode, prealfile)
|
||||
{
|
||||
if (strcmp(endp, suffix))
|
||||
{
|
||||
/* Try once as-is, with the given extension. That takes care */
|
||||
/* of some less-usual extensions like ".tlef". */
|
||||
if ((rfile = PaOpen(name, mode, NULL, Path, CellLibPath, prealfile)) != NULL)
|
||||
return rfile;
|
||||
|
||||
len = endp - name;
|
||||
if (len > sizeof namebuf - 1) len = sizeof namebuf - 1;
|
||||
(void) strncpy(namebuf, name, len);
|
||||
|
||||
Reference in New Issue
Block a user