From: Wilfried Goesgens Date: Sun, 30 Jan 2011 10:00:47 +0000 (+0100) Subject: By jimcuclamath: set maxium allowed password length to the length of the buffer we... X-Git-Tag: v7.86~16 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6681277c5c9b21894666d389c0dfb2503a76ea14 By jimcuclamath: set maxium allowed password length to the length of the buffer we read into. --- diff --git a/citadel/textclient/citadel.c b/citadel/textclient/citadel.c index b1abf2947..84abf4e94 100644 --- a/citadel/textclient/citadel.c +++ b/citadel/textclient/citadel.c @@ -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) {