diff --git a/Src/mail.c b/Src/mail.c index 2d0eff8..e115dc9 100644 --- a/Src/mail.c +++ b/Src/mail.c @@ -569,7 +569,7 @@ int smtp_send(SOCKET relay, BUFFER *head, BUFFER *message, char *from) buf_setf(line, "MAIL FROM:<%b>\r\n", content); sock_cat(relay, line); sock_getsmtp(relay, line); - if (!line->data[0] == '2') { + if (line->data[0] != '2') { errlog(ERRORMSG, "SMTP relay does not accept mail: %b\n", line); goto end; } diff --git a/Src/menusend.c b/Src/menusend.c index 8281764..d1e7e36 100644 --- a/Src/menusend.c +++ b/Src/menusend.c @@ -432,8 +432,13 @@ void send_message(int type, char *nym, BUFFER *in) if (type == 'p' || type == 'f') { if (strchr(NEWS, '@')) { /* NOT_IMPLEMENTED; */ - } else + } else { f = openpipe(NEWS); + if (f != NULL) { + buf_write(msg, f); + closepipe(f); + } + } } else { if (NAME[0]) { buf_sets(tmp, NAME); diff --git a/Src/menustats.c b/Src/menustats.c index 6437847..81f9ad1 100644 --- a/Src/menustats.c +++ b/Src/menustats.c @@ -290,7 +290,7 @@ static int download_list() { clear(); standout(); - printw(ALLPINGERSURL); + printw("%s", ALLPINGERSURL); standend(); mvprintw(3,0,"downloading %s...", ALLPINGERSURL); diff --git a/Src/rem.c b/Src/rem.c index a2b4675..62fdd47 100644 --- a/Src/rem.c +++ b/Src/rem.c @@ -191,7 +191,7 @@ void logmail(char *mailbox, BUFFER *message) t = time(NULL); tc = localtime(&t); strftime(line, LINELEN, "From Mixmaster %a %b %d %H:%M:%S %Y\n", tc); - fprintf(mbox, line); + fprintf(mbox, "%s", line); } buf_write(message, mbox); fprintf(mbox, "\n\n");