From 6226b4cfdc782aaa1c968d84614272009f8cd80e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Apr 2008 19:42:00 +0200 Subject: [PATCH] Oops, fix mistake in third-to-last commit. --- lib/fflush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fflush.c b/lib/fflush.c index f143247f6..22d7d02f3 100644 --- a/lib/fflush.c +++ b/lib/fflush.c @@ -62,7 +62,7 @@ restore_seek_optimization (FILE *fp, int saved_flags) #endif static inline void -update_fpos_cache (FILE *fp) +update_fpos_cache (FILE *fp, off_t pos) { #if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */ fp_->_offset = pos; @@ -161,7 +161,7 @@ rpl_fflush (FILE *stream) return EOF; /* After a successful lseek, update the file descriptor's position cache in the stream. */ - update_fpos_cache (stream); + update_fpos_cache (stream, pos); return 0; -- 2.11.0