diff options
-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 25c108725..6ec1d6dff 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 = read(0, buf, BUFSIZ)) != 0) { | 81 | while ((c = read(STDIN_FILENO, 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 | } |