Skip to content

Commit adbeffc

Browse files
authored
Merge pull request #374 from wjrforcyber/fix_lib_pointer
Fix(Pointer): Fix the wrong value passed to size
2 parents d0d1721 + 5632bb8 commit adbeffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/scl/sclLiberty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ char * Scl_LibertyFileContents( char * pFileName, long * nContents )
600600
else
601601
{
602602
FILE * pFile = fopen( pFileName, "rb" );
603-
pContents = ABC_ALLOC( char, nContents+1 );
603+
pContents = ABC_ALLOC( char, *nContents+1 );
604604
long RetValue = 0;
605605
RetValue = fread( pContents, *nContents, 1, pFile );
606606
fclose( pFile );

0 commit comments

Comments
 (0)