From 88a0244dde0a961deaf588b438278f5a993bed4b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 15 Mar 2010 18:13:06 -0400 Subject: [PATCH] Add missing newline after pass password warning --- plugins/sudoers/auth/sudo_auth.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c index 7e1be42a7..707c5cc87 100644 --- a/plugins/sudoers/auth/sudo_auth.c +++ b/plugins/sudoers/auth/sudo_auth.c @@ -252,20 +252,22 @@ cleanup: void pass_warn(void) { - struct sudo_conv_message msg; - struct sudo_conv_reply repl; + struct sudo_conv_message msg[2]; + struct sudo_conv_reply repl[2]; /* Call conversation function */ - memset(&msg, 0, sizeof(msg)); - msg.msg_type = SUDO_CONV_ERROR_MSG; + memset(msg, 0, sizeof(msg)); + msg[0].msg_type = SUDO_CONV_ERROR_MSG; #ifdef INSULT if (def_insults) - msg.msg = INSULT; + msg[0].msg = INSULT; else #endif - msg.msg = def_badpass_message; + msg[0].msg = def_badpass_message; + msg[1].msg_type = SUDO_CONV_ERROR_MSG; + msg[1].msg = "\n"; memset(&repl, 0, sizeof(repl)); - sudo_conv(1, &msg, &repl); + sudo_conv(2, msg, repl); } char * -- 2.40.0