* src/tee.c (tee_files): Swap fwrite's size/n_elem args and
compare the return value against "1".
Standard output is the first one. */
for (i = 0; i <= nfiles; i++)
if (descriptors[i]
Standard output is the first one. */
for (i = 0; i <= nfiles; i++)
if (descriptors[i]
- && fwrite (buffer, 1, bytes_read, descriptors[i]) != bytes_read)
+ && fwrite (buffer, bytes_read, 1, descriptors[i]) != 1)
{
error (0, errno, "%s", files[i]);
descriptors[i] = NULL;
{
error (0, errno, "%s", files[i]);
descriptors[i] = NULL;