From: kstailey Date: Fri, 28 Feb 1997 16:22:31 +0000 (+0000) Subject: v 1.2 a different way X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bda1eb6077f173c2163ae2c5a0e8c5ef449afcd1;p=openbsd v 1.2 a different way --- diff --git a/lib/libpthread/stdio/ftell.c b/lib/libpthread/stdio/ftell.c index a813892beb9..57dce109ac9 100644 --- a/lib/libpthread/stdio/ftell.c +++ b/lib/libpthread/stdio/ftell.c @@ -36,7 +36,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)ftell.c 5.4 (Berkeley) 2/5/91";*/ -static char *rcsid = "$Id: ftell.c,v 1.3 1997/02/28 16:07:30 kstailey Exp $"; +static char *rcsid = "$Id: ftell.c,v 1.4 1997/02/28 16:22:31 kstailey Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -62,7 +62,7 @@ ftell(fp) if (fp->_flags & __SOFF) pos = fp->_offset; else { - pos = lseek(fp, (fpos_t)0, SEEK_CUR); + pos = lseek(fp->_file, (fpos_t)0, SEEK_CUR); } if (pos != -1L) {