diff options
author | dzwdz | 2022-08-08 13:12:41 +0200 |
---|---|---|
committer | dzwdz | 2022-08-08 13:12:41 +0200 |
commit | c7af8418c9a2222cde5ab3a6953b31803d0a8ef1 (patch) | |
tree | ce9b5f19cfd292eb4e70086cb061527f29a68bba /src/user/app/shell | |
parent | 1252bdeaf795629ac34161bc59a263e998483247 (diff) |
user: union filesystems
Diffstat (limited to 'src/user/app/shell')
-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 2562c18..0f06482 100644 --- a/src/user/app/shell/builtins.c +++ b/src/user/app/shell/builtins.c @@ -125,7 +125,7 @@ static void cmd_ls(int argc, char **argv) { return; } for (;;) { - int len = fread(buf, 1, sizeof buf, file); + int len = fread(buf, 1, buflen, file); if (len <= 0) break; for (int i = 0; i < len; i++) if (buf[i] == '\0') buf[i] = '\n'; |