aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/port/fseeko.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/port/fseeko.c b/src/port/fseeko.c
index ed8b8b9b577..ec9ce21eebd 100644
--- a/src/port/fseeko.c
+++ b/src/port/fseeko.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.17 2004/12/31 22:03:53 pgsql Exp $
+ * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.17.4.1 2005/08/12 00:29:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -72,6 +72,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