diff options
-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); } } |