diff options
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/tee.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index bb2896663..25c108725 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
| @@ -78,7 +78,7 @@ int tee_main(int argc, char **argv) | |||
| 78 | *p = NULL; /* Store the sentinal value. */ | 78 | *p = NULL; /* Store the sentinal value. */ |
| 79 | 79 | ||
| 80 | #ifdef CONFIG_FEATURE_TEE_USE_BLOCK_IO | 80 | #ifdef CONFIG_FEATURE_TEE_USE_BLOCK_IO |
| 81 | while ((c = fread(buf, 1, BUFSIZ, stdin)) != 0) { | 81 | while ((c = read(0, buf, BUFSIZ)) != 0) { |
| 82 | for (p=files ; *p ; p++) { | 82 | for (p=files ; *p ; p++) { |
| 83 | fwrite(buf, 1, c, *p); | 83 | fwrite(buf, 1, c, *p); |
| 84 | } | 84 | } |
