mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Fixed an error with LEF read where duplicate macros are encountered
in the input. The name of one was being modified but was being right-justified into the string, resulting in a name starting with many space characters. Also: Fixed an issue with extresist where a label that ends up with an empty string can become a node with an empty string name in the .res.ext file output.
This commit is contained in:
+1
-1
@@ -2028,7 +2028,7 @@ LefReadMacro(f, mname, oscale, importForeign, doAnnotate, lefTimestamp)
|
||||
|
||||
for (suffix = 1; HashGetValue(he) != NULL; suffix++)
|
||||
{
|
||||
sprintf(newname, "%250s_%d", mname, suffix);
|
||||
snprintf(newname, 255, "%s_%d", mname, suffix);
|
||||
he = HashFind(&lefDefInitHash, newname);
|
||||
}
|
||||
LefError(LEF_WARNING, "Cell \"%s\" was already defined in this file. "
|
||||
|
||||
Reference in New Issue
Block a user