From: Jim Meyering Date: Tue, 23 Sep 2003 07:51:02 +0000 (+0000) Subject: (tee): Adjust fwrite arguments so that the return X-Git-Tag: v5.1.0~553 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c0042c884d8bb019b1f5147d4968fc8b184b86c8;p=thirdparty%2Fcoreutils.git (tee): Adjust fwrite arguments so that the return value is the number of bytes written. --- diff --git a/src/tee.c b/src/tee.c index a45e4bfde3..b8df35edbf 100644 --- a/src/tee.c +++ b/src/tee.c @@ -210,7 +210,7 @@ tee (int nfiles, const char **files) Standard output is the first one. */ for (i = 0; i <= nfiles; i++) if (descriptors[i] - && fwrite (buffer, bytes_read, 1, descriptors[i]) != bytes_read) + && fwrite (buffer, 1, bytes_read, descriptors[i]) != bytes_read) { error (0, errno, "%s", files[i]); descriptors[i] = NULL;