]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3data/md3lib.c
gcc: appease the hardening warnings
[xonotic/netradiant.git] / tools / quake3 / q3data / md3lib.c
index 68085f5c2349c14beedc98c0b3a300096689dce2..ead6df21397feb4d10ad69f9773a2e2a16a57ba2 100644 (file)
@@ -163,7 +163,7 @@ void MD3_Dump( const char *filename ){
 
        fileSize = filelength( fp );
        _buffer = malloc( fileSize );
-       fread( _buffer, fileSize, 1, fp );
+       assert(fread( _buffer, fileSize, 1, fp ));
        fclose( fp );
 
        buffer = ( char * ) _buffer;