aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-28 14:16:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-28 14:16:16 +0000
commitb115dacc83ddcda0e7e3961be9911fc93572cd4c (patch)
treec5c836fa25c01a2d1d8c968d49830ae5bc22c29b /sink.c
parent2a2c3129e436d7560de8dcfdd11191cfa6506a92 (diff)
downloadfetchmail-b115dacc83ddcda0e7e3961be9911fc93572cd4c.tar.gz
fetchmail-b115dacc83ddcda0e7e3961be9911fc93572cd4c.tar.bz2
fetchmail-b115dacc83ddcda0e7e3961be9911fc93572cd4c.zip
Dan Flater's bug.
svn path=/trunk/; revision=2394
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index 72d97904..d854ba20 100644
--- a/sink.c
+++ b/sink.c
@@ -375,7 +375,8 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg)
int smtperr = atoi(smtp_response);
char *responses[1];
- responses[0] = smtp_response;
+ xalloca(responses[0], char *, strlen(smtp_response)+1);
+ strcpy(responses[0], smtp_response);
/* required by RFC1870; sets us up to be able to send bouncemail */
SMTP_rset(ctl->smtp_socket);