aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
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;