diff options
Diffstat (limited to 'bin/ksh/shf.c')
-rw-r--r-- | bin/ksh/shf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c index 31bd0f39a86..1352a2f22aa 100644 --- a/bin/ksh/shf.c +++ b/bin/ksh/shf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shf.c,v 1.14 2005/12/11 18:53:51 deraadt Exp $ */ +/* $OpenBSD: shf.c,v 1.15 2006/04/02 00:48:33 deraadt Exp $ */ /* * Shell file I/O routines @@ -285,7 +285,7 @@ shf_flush(struct shf *shf) if (shf->flags & SHF_READING) { shf->flags &= ~(SHF_EOF | SHF_READING); if (shf->rnleft > 0) { - lseek(shf->fd, (off_t) -shf->rnleft, 1); + lseek(shf->fd, (off_t) -shf->rnleft, SEEK_CUR); shf->rnleft = 0; shf->rp = shf->buf; } |