Merge pull request #374 from wjrforcyber/fix_lib_pointer

Fix(Pointer): Fix the wrong value passed to size
This commit is contained in:
alanminko 2025-03-02 01:27:01 +07:00 committed by GitHub
commit adbeffc145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 );