]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/cportals.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / contrib / bobtoolz / cportals.cpp
index ab944ed82514bb57f59681d65417694e6111c405..3fd39202f4bfa6660dfb9f7164b7a788261dfe38 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <string.h>
 #include <math.h>
+#include <cassert>
 
 #include "misc.h"
 
@@ -244,10 +245,10 @@ void CPortals::Load()
 
     in = fopen(fn, "rt");
 
-    fgets(buf, LINE_BUF, in);
-    fgets(buf, LINE_BUF, in);
-    fgets(buf, LINE_BUF, in);
-    fgets(buf, LINE_BUF, in);
+    assert(fgets(buf, LINE_BUF, in));
+    assert(fgets(buf, LINE_BUF, in));
+    assert(fgets(buf, LINE_BUF, in));
+    assert(fgets(buf, LINE_BUF, in));
 
     unsigned int n;
     for (n = 0; n < p_count; n++) {