From: Bruno Haible Date: Sat, 26 Apr 2008 17:42:00 +0000 (+0200) Subject: Oops, fix mistake in third-to-last commit. X-Git-Tag: v0.1~7488 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=6226b4cfdc782aaa1c968d84614272009f8cd80e;hp=284866a44c1115e8786a23c7a50d3e710fc75afd;p=gnulib.git Oops, fix mistake in third-to-last commit. --- 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;