artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0237f35
)
actually use lbuf in getmailname()
author
stsp
<stsp@openbsd.org>
Mon, 5 Oct 2015 22:08:14 +0000
(22:08 +0000)
committer
stsp
<stsp@openbsd.org>
Mon, 5 Oct 2015 22:08:14 +0000
(22:08 +0000)
ok millert@ gilles@
usr.sbin/smtpd/util.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/util.c
b/usr.sbin/smtpd/util.c
index
f40cc40
..
a7409bc
100644
(file)
--- a/
usr.sbin/smtpd/util.c
+++ b/
usr.sbin/smtpd/util.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: util.c,v 1.11
5 2015/10/02 00:41:25 gilles Exp $
*/
+/* $OpenBSD: util.c,v 1.11
6 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)