diff options
Diffstat (limited to 'src/map/amap/amapRead.c')
-rw-r--r-- | src/map/amap/amapRead.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/amap/amapRead.c b/src/map/amap/amapRead.c index 5776c3ff..1031ee84 100644 --- a/src/map/amap/amapRead.c +++ b/src/map/amap/amapRead.c @@ -76,6 +76,7 @@ char * Amap_LoadFile( char * pFileName ) FILE * pFile; char * pBuffer; int nFileSize; + int RetValue; // open the BLIF file for binary reading pFile = Io_FileOpen( pFileName, "open_path", "rb", 1 ); // pFile = fopen( FileName, "rb" ); @@ -94,7 +95,7 @@ char * Amap_LoadFile( char * pFileName ) rewind( pFile ); // load the contents of the file into memory pBuffer = ABC_ALLOC( char, nFileSize + 10 ); - fread( pBuffer, nFileSize, 1, pFile ); + RetValue = fread( pBuffer, nFileSize, 1, pFile ); // terminate the string with '\0' pBuffer[ nFileSize ] = '\0'; strcat( pBuffer, "\n.end\n" ); |