projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f6e46
)
(tee): Adjust fwrite arguments so that the return
author
Jim Meyering
<jim@meyering.net>
Tue, 23 Sep 2003 07:51:02 +0000
(07:51 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 23 Sep 2003 07:51:02 +0000
(07:51 +0000)
value is the number of bytes written.
src/tee.c
patch
|
blob
|
history
diff --git
a/src/tee.c
b/src/tee.c
index a45e4bfde3bb6d26ca1d0aeeee6fce7b1e271df2..b8df35edbf8142a11eb8d6e13b841b4d7019abf4 100644
(file)
--- 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;