From 2f15add38f783e371c7accfddfad374cddf1530f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 6 Jun 2002 05:39:06 +0000 Subject: [PATCH] Fixed __PHYSFS_platformSeek(). --- platform/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/posix.c b/platform/posix.c index c83ca4a..8f98aa0 100644 --- a/platform/posix.c +++ b/platform/posix.c @@ -430,7 +430,7 @@ int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos) int fd = *((int *) opaque); /* !!! FIXME: Use llseek where available. */ - BAIL_IF_MACRO(lseek(fd, (int) pos, SEEK_SET) != 0, strerror(errno), 0); + BAIL_IF_MACRO(lseek(fd, (int) pos, SEEK_SET) == -1, strerror(errno), 0); return(1); } /* __PHYSFS_platformSeek */