physfs.c
changeset 48 113df08e5fee
parent 44 534901592376
child 51 42f4befc1d0b
--- a/physfs.c	Mon Jul 23 04:48:04 2001 +0000
+++ b/physfs.c	Mon Jul 23 07:15:21 2001 +0000
@@ -1281,6 +1281,7 @@
     assert(h != NULL);
     assert(h->funcs != NULL);
     BAIL_IF_MACRO(h->funcs->seek == NULL, ERR_NOT_SUPPORTED, 0);
+    BAIL_IF_MACRO(pos < 0, ERR_INVALID_ARGUMENT, 0);
     return(h->funcs->seek(h, pos));
 } /* PHYSFS_seek */