diff options
author | Rob Landley <rob@landley.net> | 2008-08-28 17:32:05 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-08-28 17:32:05 -0500 |
commit | cebe48aebfbb9378715db1ef98e0a8bcd1a39998 (patch) | |
tree | 4a51758aa440bb0b51c9dd50e53ea1da9f53276d | |
parent | 24396bbf78d03dee1e695d8b32bea48805c89a1b (diff) | |
download | toybox-cebe48aebfbb9378715db1ef98e0a8bcd1a39998.tar.gz |
Fix giant glaring thinko.
-rw-r--r-- | toys/count.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/count.c b/toys/count.c index 96102e4e..acc0c69f 100644 --- a/toys/count.c +++ b/toys/count.c @@ -28,7 +28,7 @@ void count_main(void) len = xread(0, toybuf, sizeof(toybuf)); if (!len) break; size += len; - xwrite(1, toybuf, sizeof(toybuf)); + xwrite(1, toybuf, len); fdprintf(2, "%"PRIu64" bytes\r", size); } fdprintf(2,"\n"); |