diff options
author | florian <florian@openbsd.org> | 2017-07-28 13:05:21 +0000 |
---|---|---|
committer | florian <florian@openbsd.org> | 2017-07-28 13:05:21 +0000 |
commit | f58011fed3b9f595baa0f7fa564d12359697dbe3 (patch) | |
tree | c5fe1b9b3d76505c5bcf89effc3508e2522b0740 /usr.sbin/route6d | |
parent | remove unused variable; pointed out by clang (diff) | |
download | wireguard-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.c | 4 |
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'; |