From cebe48aebfbb9378715db1ef98e0a8bcd1a39998 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 28 Aug 2008 17:32:05 -0500 Subject: Fix giant glaring thinko. --- toys/count.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3