platform/posix.c
branchstable-1.0
changeset 1179 eea580b4e199
parent 940 a624957f6288
--- a/platform/posix.c	Mon Aug 01 17:37:06 2011 -0400
+++ b/platform/posix.c	Mon Aug 01 17:55:45 2011 -0400
@@ -478,7 +478,7 @@
 {
     PHYSFS_sint64 pos = __PHYSFS_platformTell(opaque);
     PHYSFS_sint64 len = __PHYSFS_platformFileLength(opaque);
-    return(pos >= len);
+    return((pos < 0) || (len < 0) || (pos >= len));
 } /* __PHYSFS_platformEOF */