From d32e51409ffb7b06589b12b04520ca57bf4eda86 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 19 Sep 2013 18:49:18 -0400 Subject: Buf fix in Liberty parser. --- src/map/scl/sclLiberty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/scl/sclLiberty.c b/src/map/scl/sclLiberty.c index f3f31224..789473ad 100644 --- a/src/map/scl/sclLiberty.c +++ b/src/map/scl/sclLiberty.c @@ -1210,7 +1210,7 @@ Vec_Str_t * Scl_LibertyReadSclStr( Scl_Tree_t * p, int fVerbose, int fVeryVerbos continue; // top level information Vec_StrPutS_( vOut, Scl_LibertyReadString(p, pCell->Head) ); - Vec_StrPutF_( vOut, atof(Scl_LibertyReadCellArea(p, pCell)) ); + Vec_StrPutF_( vOut, Scl_LibertyReadCellArea(p, pCell) ? atof(Scl_LibertyReadCellArea(p, pCell)) : 1 ); Vec_StrPutI_( vOut, Scl_LibertyReadDeriveStrength(p, pCell) ); // pin count nOutputs = Scl_LibertyReadCellOutputNum( p, pCell ); -- cgit v1.2.3