fix: old input password buffer size only 20 bytes
This commit is contained in:
parent
92cb9f5317
commit
5b17b3226c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue