diff options
author | Bruce Momjian | 2005-08-11 23:05:14 +0000 |
---|---|---|
committer | Bruce Momjian | 2005-08-11 23:05:14 +0000 |
commit | e9bb9702d89cdde2d0e5bf384fa839b78d7639df (patch) | |
tree | 597084cec3339bc8093a0110d553fea91e9b4056 | |
parent | 75a3c1961628e457c4ce5522bd289e5345f502dc (diff) |
Fix BSD fseeko to seek from the end of the file.
-rw-r--r-- | src/port/fseeko.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/port/fseeko.c b/src/port/fseeko.c index 6e39c37044..c53683ab6f 100644 --- a/src/port/fseeko.c +++ b/src/port/fseeko.c @@ -70,6 +70,7 @@ fseeko(FILE *stream, off_t offset, int whence) if (fstat(fileno(stream), &filestat) != 0) goto failure; floc = filestat.st_size; + floc += offset; if (fsetpos(stream, &floc) != 0) goto failure; #ifdef bsdi |