summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 11:17:15 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 11:17:15 +0000
commit592dbdab405ce6128e273c06d77efe9953c2711c (patch)
treec549c033f9f1d81442a432f8d34473d69cd7ae1e /usr.sbin
parentd7e1c07844dbad316b09277c586cf2de27ec0f44 (diff)
it's ok for strlcpy to fail here though it can't, cast void
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index 5291d06726d..f7afeedf2eb 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.99 2014/04/09 18:55:19 eric Exp $ */
+/* $OpenBSD: control.c,v 1.100 2014/04/19 11:17:14 gilles Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
@@ -468,7 +468,7 @@ control_dispatch_ext(struct mproc *p, struct imsg *imsg)
if (! stat_backend->iter(&kvp->iter, &key, &val))
kvp->iter = NULL;
else {
- strlcpy(kvp->key, key, sizeof kvp->key);
+ (void)strlcpy(kvp->key, key, sizeof kvp->key);
kvp->val = val;
}
m_compose(p, IMSG_CTL_GET_STATS, 0, 0, -1, kvp, sizeof *kvp);