diff options
author | Rob Landley <rob@landley.net> | 2008-04-09 00:22:04 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-04-09 00:22:04 -0500 |
commit | aef99f4102bbb67963e651928bd79fcb2c656b6d (patch) | |
tree | af33e8f64851c61fdfba0575653f72e01033daaa /toys | |
parent | d5928d56bc383eac6427f63d2c8f8f1819281b1b (diff) | |
download | toybox-aef99f4102bbb67963e651928bd79fcb2c656b6d.tar.gz |
Thinko in cat.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/cat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |