summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-08-14 08:49:57 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-08-14 08:49:57 +0000
commitf42d95ecf548405292b659dbd2074126b0a043d8 (patch)
treec6df5947ba03b88fb619a2c5e170d113a84115c5
parent569ddcd979123dde45748d4191875139ea0b26a4 (diff)
fix bad argument passed to errx()
ok sthen@ benno@ claudio@
-rw-r--r--sbin/route/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 172803535ab..90fcfc57cd6 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.157 2012/07/13 10:15:53 benno Exp $ */
+/* $OpenBSD: route.c,v 1.158 2012/08/14 08:49:56 chl Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -764,7 +764,7 @@ inet6_makenetandmask(struct sockaddr_in6 *sin6, char *plen)
len = strtonum(plen, 0, 128, &errstr);
if (errstr)
- errx(1, "prefixlen %s is %s", s, errstr);
+ errx(1, "prefixlen %s is %s", plen, errstr);
q = (128-len) >> 3;
r = (128-len) & 7;