Commit 00b674d5 by Miodrag Milanovic

fix buffer error

parent d7ecb23e
......@@ -698,13 +698,16 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
int usedX = 0;
*fOldFormat = 0;
char Buffer[1000];
int MaxLine = 1000000;
char *Buffer;
int state = 0;
int iPo = 0;
nFrames = -1;
int status = 0;
int i;
while ( fgets( Buffer, 1000, pFile ) != NULL )
Buffer = ABC_ALLOC( char, MaxLine );
while ( fgets( Buffer, MaxLine, pFile ) != NULL )
{
if ( Buffer[0] == '#' )
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment