Fix Segault in scl

Fixes a regression that was introduced in #232 by myself.
Reverts back to correct version introduced in #228.

This was likely introduced in a careless merge before creating PR #232.
This commit is contained in:
phsauter 2023-09-27 18:16:59 +02:00
parent 0f11580fce
commit 6836863e55
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
while ( pObj && Abc_ObjIsNode(pObj) )
{
i++;
nLength = Abc_MaxInt( nLength, strlen(Abc_SclObjCell(pObj)->pName) );
nLength = Abc_MaxInt( nLength, Abc_SclObjCell(pObj) ? strlen(Abc_SclObjCell(pObj)->pName) : 2 /* strlen("pi") */ );
pObj = Abc_SclFindMostCriticalFanin( p, &fRise, pObj );
}