]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3data/video.c
gcc: appease the hardening warnings
[xonotic/netradiant.git] / tools / quake3 / q3data / video.c
index 2fa7cee2ca14d2e6120389fe22149b9317273848..8de263bc4c4e3285d160c27fc01febd2c98b96ab 100644 (file)
@@ -249,7 +249,7 @@ void LoadSoundtrack( void ){
        }
        len = Q_filelength( f );
        s_soundtrack = malloc( len );
-       fread( s_soundtrack, 1, len, f );
+       assert(fread( s_soundtrack, 1, len, f ));
        fclose( f );
 
        s_wavinfo = GetWavinfo( name, s_soundtrack, len );