From: Bruno Haible Date: Sat, 26 Apr 2008 17:42:00 +0000 (+0200) Subject: Oops, fix mistake in third-to-last commit. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6226b4cfdc782aaa1c968d84614272009f8cd80e;p=pspp Oops, fix mistake in third-to-last commit. --- diff --git a/lib/fflush.c b/lib/fflush.c index f143247f67..22d7d02f34 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;