From d518bad0dc7dd9e3fbb45423a7db5cb8c1c922dc Mon Sep 17 00:00:00 2001 From: lengqinjie <15390014138@163.com> Date: Mon, 22 Nov 2021 09:07:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(shell):=20cat=E9=92=88=E5=AF=B9=E5=A4=A7?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #I4J4TK Signed-off-by: lengqinjie <15390014138@163.com> --- components/shell/src/cmds/vfs_shellcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/shell/src/cmds/vfs_shellcmd.c b/components/shell/src/cmds/vfs_shellcmd.c index f5c065ba..438c80bb 100755 --- a/components/shell/src/cmds/vfs_shellcmd.c +++ b/components/shell/src/cmds/vfs_shellcmd.c @@ -291,7 +291,7 @@ INT32 OsShellCmdCat(INT32 argc, const CHAR **argv) } PRINTK("%s", buf); (VOID)LOS_TaskDelay(1); - } while (size == CAT_BUF_SIZE); + } while (size == CAT_BUF_SIZE - 1); free(fullpath); close(fd);