diff --git a/src/map/scl/sclLiberty.c b/src/map/scl/sclLiberty.c index 236e6ef24..2e3838eea 100644 --- a/src/map/scl/sclLiberty.c +++ b/src/map/scl/sclLiberty.c @@ -600,7 +600,7 @@ char * Scl_LibertyFileContents( char * pFileName, long * nContents ) else { FILE * pFile = fopen( pFileName, "rb" ); - pContents = ABC_ALLOC( char, nContents+1 ); + pContents = ABC_ALLOC( char, *nContents+1 ); long RetValue = 0; RetValue = fread( pContents, *nContents, 1, pFile ); fclose( pFile );