mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Fix a slightly picky compiler warning
[originally from svn r317]
This commit is contained in:
parent
3a3aaaf86d
commit
e0baec8159
2
scp.c
2
scp.c
@ -95,7 +95,7 @@ void ssh_get_password(char *prompt, char *str, int maxlen)
|
|||||||
|
|
||||||
SetConsoleMode(hin, savemode);
|
SetConsoleMode(hin, savemode);
|
||||||
|
|
||||||
if (i > maxlen) i = maxlen-1; else i = i - 2;
|
if ((int)i > maxlen) i = maxlen-1; else i = i - 2;
|
||||||
str[i] = '\0';
|
str[i] = '\0';
|
||||||
|
|
||||||
WriteFile(hout, "\r\n", 2, &i, NULL);
|
WriteFile(hout, "\r\n", 2, &i, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user