Merge pull request #26582 from taosdata/fix/TS-5174-3.0

fix: old input password buffer size only 20 bytes
This commit is contained in:
Alex Duan 2024-07-16 09:04:20 +08:00 committed by GitHub
commit 579108df7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ static void shellInitArgs(int argc, char *argv[]) {
if (strlen(argv[i]) == 2) {
printf("Enter password: ");
taosSetConsoleEcho(false);
if (scanf("%20s", shell.args.password) > 1) {
if (scanf("%128s", shell.args.password) > 1) {
fprintf(stderr, "password reading error\n");
}
taosSetConsoleEcho(true);