mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
fix warning
This commit is contained in:
parent
93f88ca829
commit
156fc19c13
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue