Compiler warnings.

This commit is contained in:
Alan Mishchenko 2012-08-09 18:56:48 -07:00
parent 518410af35
commit cfc82efbb9
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ static char * Abc_FileRead( char * pFileName )
FILE * pFile;
char * pBuffer;
int nFileSize;
int RetValue;
pFile = fopen( pFileName, "r" );
if ( pFile == NULL )
{
@ -138,7 +139,7 @@ static char * Abc_FileRead( char * pFileName )
rewind( pFile );
// load the contents of the file into memory
pBuffer = (char *)malloc( nFileSize + 3 );
fread( pBuffer, nFileSize, 1, pFile );
RetValue = fread( pBuffer, nFileSize, 1, pFile );
// add several empty lines at the end
// (these will be used to signal the end of parsing)
pBuffer[ nFileSize + 0] = '\n';