From c7af8418c9a2222cde5ab3a6953b31803d0a8ef1 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 8 Aug 2022 13:12:41 +0200 Subject: user: union filesystems --- src/user/app/shell/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/shell') 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'; -- cgit v1.2.3