From 8183f72b00b3ebf0799ee3b1f0377d5768836c2e Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 17 Jul 2019 10:20:52 -0400 Subject: [PATCH] Added a missing include for utils/utils.h which has the function prototype for StrDup(). Otherwise, use of StrDup() in the LEF read routine can cause an inscrutible crash. --- lef/lefRead.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lef/lefRead.c b/lef/lefRead.c index a212aecf..500606bc 100644 --- a/lef/lefRead.c +++ b/lef/lefRead.c @@ -32,6 +32,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/ #include "tiles/tile.h" #include "utils/hash.h" #include "utils/undo.h" +#include "utils/utils.h" /* For StrDup() */ #include "database/database.h" #include "windows/windows.h" #include "graphics/graphics.h"