summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-07-08 13:14:59 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-07-08 13:14:59 +0000
commit3f549a4e976dfedba4cd1cebcb8bb1708f54b55d (patch)
treefa9135847ffbdd78b5e6dce40dd2038e33dd87a2 /usr.sbin/bgpd
parent2f00708bce6ecc4cf2c58ba9cf6cf6f713203b19 (diff)
Use correct format string specifier for int argument. Don't try to print it
as string. Fixes crash seen by Peter Bristow. "obviously ok" henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 64d77e3cea4..fd19d66372b 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.216 2008/06/15 10:19:21 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.217 2008/07/08 13:14:58 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2381,7 +2381,7 @@ getcommunity(char *s)
return (COMMUNITY_NEIGHBOR_AS);
val = strtonum(s, 0, USHRT_MAX, &errstr);
if (errstr) {
- yyerror("Community %s is %s (max: %s)", s, errstr, USHRT_MAX);
+ yyerror("Community %s is %s (max: %u)", s, errstr, USHRT_MAX);
return (COMMUNITY_ERROR);
}
return (val);