Skip to content

Commit

Permalink
Merge pull request #374 from wjrforcyber/fix_lib_pointer
Browse files Browse the repository at this point in the history
Fix(Pointer): Fix the wrong value passed to size
  • Loading branch information
alanminko authored Mar 1, 2025
2 parents d0d1721 + 5632bb8 commit adbeffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/scl/sclLiberty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit adbeffc

Please sign in to comment.