diff options
Diffstat (limited to 'src/user/app/shell/builtins.c')
-rw-r--r-- | src/user/app/shell/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/shell/builtins.c b/src/user/app/shell/builtins.c index 23a8221..1be9b5b 100644 --- a/src/user/app/shell/builtins.c +++ b/src/user/app/shell/builtins.c @@ -28,7 +28,7 @@ static void cmd_cat(int argc, char **argv) { } if (!strcmp(argv[i], "!stdin")) fextflags(file, FEXT_NOFILL); for (;;) { - int len = fread(buf, 1, sizeof buf, file); + int len = fread(buf, 1, buflen, file); if (len <= 0) break; fwrite(buf, 1, len, stdout); } |