From 9607dca3f4ae2ddc0517e4ac64da251e2c54a58c Mon Sep 17 00:00:00 2001 From: "Thomas Bushnell, BSG" Date: Thu, 29 Aug 1996 16:02:14 +0000 Subject: *** empty log message *** Thu Aug 29 12:00:30 1996 Thomas Bushnell, n/BSG * stdio/fseek.c (fseek): Don't assume we know the file position; other handles may have changed it. So set STREAM.__offset to -1 before calling __stdio_check_offset to make sure we have a correct value. --- stdio/fseek.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stdio') diff --git a/stdio/fseek.c b/stdio/fseek.c index a5abfe4866..562b7b3cb6 100644 --- a/stdio/fseek.c +++ b/stdio/fseek.c @@ -42,6 +42,7 @@ DEFUN(fseek, (stream, offset, whence), return EOF; /* Make sure we know the current offset info. */ + stream.__offset = -1; if (__stdio_check_offset (stream) == EOF) return EOF; -- cgit v1.2.3-65-gdbad