From 93ccd553a16f51becf9d4324d8fc4112d6b41504 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 8 Jul 2008 13:14:58 +0000 Subject: [PATCH] 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@ --- usr.sbin/bgpd/parse.y | 4 ++-- 1 file 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 @@ -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); -- 2.20.1