From: Boian Bonev Date: Mon, 27 Nov 2006 22:12:31 +0000 (-0800) Subject: Display local route table name correctly in output of: X-Git-Tag: v2.6.19-061214~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=887a5d00917e0b154668a506917d3187417c5e7c;p=thirdparty%2Fiproute2.git Display local route table name correctly in output of: ip ru --- diff --git a/lib/rt_names.c b/lib/rt_names.c index 0e5055968..8d019a002 100644 --- a/lib/rt_names.c +++ b/lib/rt_names.c @@ -333,7 +333,7 @@ char * rtnl_rttable_n2a(__u32 id, char *buf, int len) { struct rtnl_hash_entry *entry; - if (id >= RT_TABLE_MAX) { + if (id > RT_TABLE_MAX) { snprintf(buf, len, "%u", id); return buf; }