summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-10-05 22:08:15 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-10-05 22:08:15 +0000
commit590c99f78d66efd340a88dea8d69a34089185527 (patch)
tree41c52435940b83406574663c7ec0f2120c352b12 /usr.sbin/smtpd
parent480a37fe483b3e228a1ccd8f1fc1a60182fe5c4d (diff)
actually use lbuf in getmailname()
ok millert@ gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c
index f40cc40148d..a7409bc6470 100644
--- a/usr.sbin/smtpd/util.c
+++ b/usr.sbin/smtpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.115 2015/10/02 00:41:25 gilles Exp $ */
+/* $OpenBSD: util.c,v 1.116 2015/10/05 22:08:14 stsp Exp $ */
/*
* Copyright (c) 2000,2001 Markus Friedl. All rights reserved.
@@ -735,6 +735,7 @@ getmailname(char *hostname, size_t len)
fatal("exiting");
}
memcpy(lbuf, buf, buflen);
+ buf = lbuf;
}
if (strlcpy(hostname, buf, len) >= len)