conversation function no longer puts a newline at the end of info

or error messages.
This commit is contained in:
Todd C. Miller
2010-03-09 19:20:01 -05:00
parent c8c4d6a13b
commit f211213dcb
2 changed files with 9 additions and 9 deletions

View File

@@ -78,13 +78,11 @@ sudo_conversation(int num_msgs, const struct sudo_conv_message msgs[],
break;
case SUDO_CONV_INFO_MSG:
if (msg->msg)
(void) puts(msg->msg);
(void) fputs(msg->msg, stdout);
break;
case SUDO_CONV_ERROR_MSG:
if (msg->msg) {
if (msg->msg)
(void) fputs(msg->msg, stderr);
(void) fputc('\n', stderr);
}
break;
default:
goto err;