aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-04-09 00:22:04 -0500
committerRob Landley <rob@landley.net>2008-04-09 00:22:04 -0500
commitaef99f4102bbb67963e651928bd79fcb2c656b6d (patch)
treeaf33e8f64851c61fdfba0575653f72e01033daaa /toys
parentd5928d56bc383eac6427f63d2c8f8f1819281b1b (diff)
downloadtoybox-aef99f4102bbb67963e651928bd79fcb2c656b6d.tar.gz
Thinko in cat.
Diffstat (limited to 'toys')
-rw-r--r--toys/cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/cat.c b/toys/cat.c
index 118aa603..80f3ee49 100644
--- a/toys/cat.c
+++ b/toys/cat.c
@@ -28,7 +28,7 @@ static void do_cat(int fd, char *name)
len = xread(fd, toybuf, size);
if (len<0) toys.exitval = EXIT_FAILURE;
if (len<1) break;
- xwrite(1, toybuf, size);
+ xwrite(1, toybuf, len);
}
}