mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-19 07:13:42 +03:00
Getpass: fixed loop + indentation
This commit is contained in:
parent
5d87ca94a8
commit
00d68d63fa
@ -60,7 +60,7 @@ static int ssh_gets(const char *prompt, char *buf, size_t len, int verify) {
|
||||
fprintf(stdout, "%s", prompt);
|
||||
}
|
||||
fflush(stdout);
|
||||
while (fgets(tmp, len, stdin) != NULL);
|
||||
fgets(tmp, len, stdin);
|
||||
|
||||
if ((ptr = strchr(tmp, '\n'))) {
|
||||
*ptr = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user