Display local route table name correctly in output of:

ip ru
This commit is contained in:
Boian Bonev 2006-11-27 14:12:31 -08:00 committed by Stephen Hemminger
parent 288384f22f
commit 887a5d0091
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}