Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed __PHYSFS_platformSeek().
  • Loading branch information
icculus committed Jun 6, 2002
1 parent 05b5654 commit 2f15add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/posix.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 2f15add

Please sign in to comment.