fix: taosdump scanf extend to 255 bytes
This commit is contained in:
parent
3418a1d6f5
commit
d3931bfb5f
|
@ -778,7 +778,7 @@ static void parse_args(
|
||||||
|| (strncmp(argv[i], "--password", 10) == 0)) {
|
|| (strncmp(argv[i], "--password", 10) == 0)) {
|
||||||
printf("Enter password: ");
|
printf("Enter password: ");
|
||||||
setConsoleEcho(false);
|
setConsoleEcho(false);
|
||||||
if (scanf("%20s", arguments->password) > 1) {
|
if (scanf("%255s", arguments->password) > 1) {
|
||||||
errorPrint("%s() LN%d, password read error!\n",
|
errorPrint("%s() LN%d, password read error!\n",
|
||||||
__func__, __LINE__);
|
__func__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue