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, 4 Sep 2011 14:10:47 +0000 (14:10 +0000)
citadel/textclient/citadel.c

index ef2685edadd7d0a15f7b7128cb36a73300821cfd..3b3fba25d39aed0163dec8fcb2e637e969378013 100644 (file)
@@ -1660,7 +1660,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) {