]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/points.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / radiant / points.cpp
index 6e29109c845b314e6bce182a01a90f39c0055daa..3417d37009987896d1a8d9338c8220734d3fb74d 100644 (file)
@@ -26,6 +26,7 @@
    please contact Id Software immediately at info@idsoftware.com.
  */
 
+#include <cassert>
 #include "points.h"
 
 #include "debugging/debugging.h"
@@ -274,7 +275,7 @@ int LoadFile(const char *filename, void **bufferptr)
         return -1;
     }
 
-    fread(*bufferptr, 1, len, f);
+    assert(fread(*bufferptr, 1, len, f));
     fclose(f);
 
     // we need to end the buffer with a 0