aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-08-28 17:32:05 -0500
committerRob Landley <rob@landley.net>2008-08-28 17:32:05 -0500
commitcebe48aebfbb9378715db1ef98e0a8bcd1a39998 (patch)
tree4a51758aa440bb0b51c9dd50e53ea1da9f53276d /toys
parent24396bbf78d03dee1e695d8b32bea48805c89a1b (diff)
downloadtoybox-cebe48aebfbb9378715db1ef98e0a8bcd1a39998.tar.gz
Fix giant glaring thinko.
Diffstat (limited to 'toys')
-rw-r--r--toys/count.c2
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");