fix: taosdump scanf extend to 255 bytes

This commit is contained in:
Alex Duan 2025-03-10 14:45:18 +08:00
parent 3418a1d6f5
commit d3931bfb5f
1 changed files with 1 additions and 1 deletions

View File

@ -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__);
}