By jimcuclamath: set maxium allowed password length to the length of the buffer we...
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 30 Jan 2011 10:00:47 +0000 (11:00 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 30 Jan 2011 10:46:52 +0000 (11:46 +0100)
citadel/textclient/citadel.c

index b1abf294794d19638ebf0b99088580df4b5a808d..84abf4e94d3de169b84b93a14656c6b0cb2ea606 100644 (file)
@@ -1689,7 +1689,7 @@ int main(int argc, char **argv)
        if (!IsEmptyStr(rc_password)) {
                strcpy(password, rc_password);
        } else {
-               newprompt("\rPlease enter your password: ", password, -19);
+               newprompt("\rPlease enter your password: ", password, -(SIZ-1));
        }
 
        if (*nonce) {