fix warning

This commit is contained in:
Timothee Besset 2017-08-20 15:04:49 -05:00
parent 93f88ca829
commit 156fc19c13

View file

@ -154,8 +154,8 @@ void MD3_Dump( const char *filename ){
Error( "Unable to open '%s'\n", filename );
}
fileSize = filelength( fileno( fp ) );
_buffer = malloc( filelength( fileno( fp ) ) );
fileSize = Q_filelength( fp );
_buffer = malloc( fileSize );
fread( _buffer, fileSize, 1, fp );
fclose( fp );