diff --git a/components/shell/src/cmds/vfs_shellcmd.c b/components/shell/src/cmds/vfs_shellcmd.c index 6cb1e06c..d6b19320 100755 --- a/components/shell/src/cmds/vfs_shellcmd.c +++ b/components/shell/src/cmds/vfs_shellcmd.c @@ -292,7 +292,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);