From: Rob Landley Date: Thu, 28 Aug 2008 22:32:05 +0000 (-0500) Subject: Fix giant glaring thinko. X-Git-Tag: 0.0.7~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cebe48aebfbb9378715db1ef98e0a8bcd1a39998;p=platform%2Fupstream%2Ftoybox.git Fix giant glaring thinko. --- diff --git a/toys/count.c b/toys/count.c index 96102e4..acc0c69 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");