From d3931bfb5f5c8f2fe4e14738b771ef5dbccc682c Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Mon, 10 Mar 2025 14:45:18 +0800 Subject: [PATCH] fix: taosdump scanf extend to 255 bytes --- tools/taos-tools/src/taosdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/taos-tools/src/taosdump.c b/tools/taos-tools/src/taosdump.c index e26d14aae1..0d4369d71c 100644 --- a/tools/taos-tools/src/taosdump.c +++ b/tools/taos-tools/src/taosdump.c @@ -778,7 +778,7 @@ static void parse_args( || (strncmp(argv[i], "--password", 10) == 0)) { printf("Enter password: "); setConsoleEcho(false); - if (scanf("%20s", arguments->password) > 1) { + if (scanf("%255s", arguments->password) > 1) { errorPrint("%s() LN%d, password read error!\n", __func__, __LINE__); }