From 72226bff0caa389b17292c25eae02cb3e127e397 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 14 Oct 2007 15:29:58 +0000 Subject: [PATCH] Removed debug logging --- mbnntp/commands.c | 5 ----- mbnntp/mbnntp.c | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/mbnntp/commands.c b/mbnntp/commands.c index bca62526..d7ed3f94 100644 --- a/mbnntp/commands.c +++ b/mbnntp/commands.c @@ -64,10 +64,7 @@ void send_xlat(char *inp) char temp[1024]; strncpy(temp, chartran(inp), sizeof(temp) -1); - -// Syslog('n', "> \"%s\"", printable(temp, 0)); PUTSTR(temp); - PUTSTR((char *)"\r\n"); FLUSHOUT(); sentbytes += (strlen(temp) + 2); @@ -141,8 +138,6 @@ void command_abhs(char *buf) art = atoi(opt); } - Syslog('n', "Article %lu", art); - if (art == 0L) { send_nntp("420 No current article has been selected"); return; diff --git a/mbnntp/mbnntp.c b/mbnntp/mbnntp.c index 29a1a41a..65199f93 100644 --- a/mbnntp/mbnntp.c +++ b/mbnntp/mbnntp.c @@ -284,7 +284,8 @@ void send_nntp(const char *format, ...) /* * Only log responses */ - if (out[4] == ' ') { + if (out[3] == ' ') { + memset(&p, 0, sizeof(p)); strncpy(p, out, 3); if (atoi(p) > 0) { Syslog('n', "> \"%s\"", printable(out, 0));