From 6681277c5c9b21894666d389c0dfb2503a76ea14 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 30 Jan 2011 11:00:47 +0100 Subject: [PATCH] By jimcuclamath: set maxium allowed password length to the length of the buffer we read into. --- citadel/textclient/citadel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2