From: Todd C. Miller Date: Mon, 15 Mar 2010 22:13:06 +0000 (-0400) Subject: Add missing newline after pass password warning X-Git-Tag: SUDO_1_8_0~811 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88a0244dde0a961deaf588b438278f5a993bed4b;p=sudo Add missing newline after pass password warning --- 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 *