From c0042c884d8bb019b1f5147d4968fc8b184b86c8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 23 Sep 2003 07:51:02 +0000 Subject: [PATCH] (tee): Adjust fwrite arguments so that the return value is the number of bytes written. --- src/tee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2