diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-23 07:51:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-23 07:51:02 +0000 |
commit | c0042c884d8bb019b1f5147d4968fc8b184b86c8 (patch) | |
tree | 9fa32194572b90b6a6ef6d3a6bb6e188b678b6bd /src | |
parent | f5f6e466d4a40cd0e4483b13cf35c33b20d51c87 (diff) | |
download | coreutils-c0042c884d8bb019b1f5147d4968fc8b184b86c8.tar.xz |
(tee): Adjust fwrite arguments so that the return
value is the number of bytes written.
Diffstat (limited to 'src')
-rw-r--r-- | src/tee.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |