From 3ee917bc2bb65a4d3cb64285aeb02f3b9ff56d98 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 ef2685eda..3b3fba25d 100644 --- a/citadel/textclient/citadel.c +++ b/citadel/textclient/citadel.c @@ -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) { -- 2.39.2