From c88276c17dda31294bc83a70e02e8cb1c69f5e8b Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 5 Mar 2007 17:29:00 +0000 Subject: need to eat whitespace at both ends of val --- usr.sbin/bgpctl/irr_parser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c index 9157323b6ef..6dcce304662 100644 --- a/usr.sbin/bgpctl/irr_parser.c +++ b/usr.sbin/bgpctl/irr_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: irr_parser.c,v 1.5 2007/03/04 18:13:13 henning Exp $ */ +/* $OpenBSD: irr_parser.c,v 1.6 2007/03/05 17:28:59 henning Exp $ */ /* * Copyright (c) 2007 Henning Brauer @@ -69,8 +69,7 @@ parse_response(FILE *f, enum qtype qtype) warnx("no \":\" found!"); return (-1); } - while (ISWS(*val)) - val++; + EATWS(val); switch (qtype) { case QTYPE_OWNAS: -- cgit v1.2.3