From 18f230fc460145f1c78a158b73924ce8d2f7dfdc Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 26 Mar 2020 09:04:52 -0400 Subject: [PATCH] Changed the default string size for tmpstr in flattenInstancesOf from 200 to 1024. Probably this should be dynamically allocated and expanded as needed, as it is holding names that are of increasing length as a hierarchy is descended and the instance prefixes appended to the name. --- VERSION | 2 +- base/flatten.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 09a6fc1..8dcb446 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.144 +1.5.145 diff --git a/base/flatten.c b/base/flatten.c index bae43f5..b6c8a26 100644 --- a/base/flatten.c +++ b/base/flatten.c @@ -259,7 +259,7 @@ int flattenInstancesOf(char *name, int fnum, char *instance) struct nlist *ChildCell; struct objlist *tmp, *ob2, *ob3; int notdone, rnodenum; - char tmpstr[200]; + char tmpstr[1024]; int nextnode, oldmax, numflat = 0; #if !OLDPREFIX int prefixlength;