From 8729b84acec335bde6023c185dbb4b48ba172b71 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 19 Jan 2005 19:03:15 +0000 Subject: [PATCH] Fixed mbnntp compile problem --- ChangeLog | 3 +++ mbnntp/commands.c | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1af0f167..814b7ee7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ v0.71.2 16-Jan-2005 data frames, this will case uncompress error -5 because zero bytes can't be compressed ar all. + mbnntp: + Fixed compile problem with some compilers. + v0.71.1 28-Nov-2004 - 16-Jan-2005 diff --git a/mbnntp/commands.c b/mbnntp/commands.c index 422498f1..df486ca6 100644 --- a/mbnntp/commands.c +++ b/mbnntp/commands.c @@ -134,7 +134,7 @@ char *getrfcchrs(int val) */ void command_abhs(char *buf) { - char *p, *cmd, *opt; + char *p, *cmd, *opt, *subj; unsigned long art = 0L; int found; @@ -195,7 +195,6 @@ void command_abhs(char *buf) } - /* * Setup a charset translation */ @@ -215,7 +214,6 @@ void command_abhs(char *buf) send_nntp("Path: MBNNTP!not-for-mail"); send_nntp("From: %s <%s>", Msg.From, Msg.FromAddress); send_nntp("Newsgroups: %s", currentgroup); - char *subj; asprintf(&subj,"Subject: %s", Msg.Subject); send_xlat(subj); send_nntp("Date: %s", rfcdate(Msg.Written + (gmt_offset((time_t)0) * 60)));