From 462dc3362f2c88fe5428ceb43f700dc65d905024 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Mon, 28 Oct 2024 16:27:52 +0800 Subject: [PATCH] fix: lastWordBytes need add 1 --- tools/shell/src/shellAuto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index a3093237cb..959e2d6d62 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -1335,6 +1335,7 @@ void printScreen(TAOS* con, SShellCmd* cmd, SWords* match) { if (p) { tstrncpy(p, str, strLen + 1); tstrncpy(p + strLen, ";", 1 + 1); + lastWordBytes += 1; shellInsertStr(cmd, (char*)p, strLen + 1); taosMemoryFree(p); } else {