X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/b8a191936d08d23e2c828fc3eed7598f793f3a3d..b65b8aaea82eb57b726e495b53f6c192d0601625:/scp.c diff --git a/scp.c b/scp.c index 1b9bcee0..075b731b 100644 --- a/scp.c +++ b/scp.c @@ -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);