mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-04 09:22:27 +03:00
Getpass: fixed loop + indentation
This commit is contained in:
@ -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';
|
||||
|
Reference in New Issue
Block a user