]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Remove some useless paranoid comparisons.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Mar 2015 11:49:10 +0000 (11:49 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 4 Mar 2015 15:04:37 +0000 (16:04 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12178 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=9de9674afc1bbbb4b43fdda8617addb1791715ce

fs.c

diff --git a/fs.c b/fs.c
index 5b9c14974869ab3565f1c23f0560994b30caa7c4..67d13f930eeb5dc23e583dcc4f94fd10b69f2794 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -587,8 +587,8 @@ static qboolean PK3_GetEndOfCentralDir (const char *packfile, int packhandle, pk
        Mem_Free (buffer);
 
        if (
-                       eocd->cdir_size < 0 || eocd->cdir_size > filesize ||
-                       eocd->cdir_offset < 0 || eocd->cdir_offset >= filesize ||
+                       eocd->cdir_size > filesize ||
+                       eocd->cdir_offset >= filesize ||
                        eocd->cdir_offset + eocd->cdir_size > filesize
           )
        {