mirror of https://github.com/YosysHQ/abc.git
Fix(Pointer): Fix the wrong value passed to size
Signed-off-by: wjrforcyber <wjrforcyber@163.com>
This commit is contained in:
parent
75ef06017d
commit
5632bb8892
|
|
@ -600,7 +600,7 @@ char * Scl_LibertyFileContents( char * pFileName, long * nContents )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FILE * pFile = fopen( pFileName, "rb" );
|
FILE * pFile = fopen( pFileName, "rb" );
|
||||||
pContents = ABC_ALLOC( char, nContents+1 );
|
pContents = ABC_ALLOC( char, *nContents+1 );
|
||||||
long RetValue = 0;
|
long RetValue = 0;
|
||||||
RetValue = fread( pContents, *nContents, 1, pFile );
|
RetValue = fread( pContents, *nContents, 1, pFile );
|
||||||
fclose( pFile );
|
fclose( pFile );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue