summaryrefslogtreecommitdiffstats
path: root/usr.sbin/route6d
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-07-28 13:05:21 +0000
committerflorian <florian@openbsd.org>2017-07-28 13:05:21 +0000
commitf58011fed3b9f595baa0f7fa564d12359697dbe3 (patch)
treec5fe1b9b3d76505c5bcf89effc3508e2522b0740 /usr.sbin/route6d
parentremove unused variable; pointed out by clang (diff)
downloadwireguard-openbsd-f58011fed3b9f595baa0f7fa564d12359697dbe3.tar.xz
wireguard-openbsd-f58011fed3b9f595baa0f7fa564d12359697dbe3.zip
pass the size of the dst buffer to strlcat, not the source; pointed
out by clang OK kettenis
Diffstat (limited to 'usr.sbin/route6d')
-rw-r--r--usr.sbin/route6d/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/route6d/log.c b/usr.sbin/route6d/log.c
index 3dd3aefe558..f943bfd9287 100644
--- a/usr.sbin/route6d/log.c
+++ b/usr.sbin/route6d/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.3 2017/03/21 12:06:56 bluhm Exp $ */
+/* $OpenBSD: log.c,v 1.4 2017/07/28 13:05:21 florian Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -93,7 +93,7 @@ vlog(int pri, const char *fmt, va_list ap)
(void)vsnprintf(tmpbuf, sizeof(tmpbuf), fmt, ap);
(void)strlcpy(logbuf, logqueue, sizeof(logbuf));
- (void)strlcat(logbuf, tmpbuf, sizeof(tmpbuf));
+ (void)strlcat(logbuf, tmpbuf, sizeof(logbuf));
logqueue[0] = '\0';