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);