1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix a slightly picky compiler warning

[originally from svn r317]
This commit is contained in:
Simon Tatham 1999-11-17 10:39:17 +00:00
parent 3a3aaaf86d
commit e0baec8159

2
scp.c
View File

@ -95,7 +95,7 @@ void ssh_get_password(char *prompt, char *str, int maxlen)
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';
WriteFile(hout, "\r\n", 2, &i, NULL);