Add missing newline after pass password warning

This commit is contained in:
Todd C. Miller
2010-03-15 18:13:06 -04:00
parent 7b024c53c4
commit 88a0244dde

View File

@@ -252,20 +252,22 @@ cleanup:
void void
pass_warn(void) pass_warn(void)
{ {
struct sudo_conv_message msg; struct sudo_conv_message msg[2];
struct sudo_conv_reply repl; struct sudo_conv_reply repl[2];
/* Call conversation function */ /* Call conversation function */
memset(&msg, 0, sizeof(msg)); memset(msg, 0, sizeof(msg));
msg.msg_type = SUDO_CONV_ERROR_MSG; msg[0].msg_type = SUDO_CONV_ERROR_MSG;
#ifdef INSULT #ifdef INSULT
if (def_insults) if (def_insults)
msg.msg = INSULT; msg[0].msg = INSULT;
else else
#endif #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)); memset(&repl, 0, sizeof(repl));
sudo_conv(1, &msg, &repl); sudo_conv(2, msg, repl);
} }
char * char *