aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-20 12:00:04 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-20 12:00:04 +0000
commita1d1d45522cee47949ab46d2ec0a5b87e694b57c (patch)
tree3b7d0255650980bf0d3a3f68ae17cd21e74291ce /sink.c
parent7684e7f9f47ca5b8c80db064129ba66e9f9cada9 (diff)
downloadfetchmail-a1d1d45522cee47949ab46d2ec0a5b87e694b57c.tar.gz
fetchmail-a1d1d45522cee47949ab46d2ec0a5b87e694b57c.tar.bz2
fetchmail-a1d1d45522cee47949ab46d2ec0a5b87e694b57c.zip
Really fix Debian bug #207919 (junk in Received: header when smtphost set).
The 6.2.5 NEWS file hat errantly stated Gregan's patch had fixed Debian bug #207919 when it had fixed #212484 (workaround dbmail length overflow) instead. svn path=/trunk/; revision=4129
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index 59c4fab7..cf141872 100644
--- a/sink.c
+++ b/sink.c
@@ -226,8 +226,7 @@ int smtp_open(struct query *ctl)
{
/* As an alternate port for smtphost is specified, we
need to strip it from domain name. */
- char *smtpname;
- xalloca(smtpname, char *, cp - ctl->smtphost + 1);
+ char *smtpname = xmalloc(cp - ctl->smtphost + 1);
strncpy(smtpname, ctl->smtphost, cp - ctl->smtphost +1);
cp = strchr(smtpname, '/');
*cp = 0;