diff options
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 6bf6c2fe..8c429874 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2506,8 +2506,7 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d) int first = 1; int pass = 0; - bsprintf(ia, "%N", n->n.addr); - + bsnprintf(ia, sizeof(ia), "%N", n->n.addr); for (e = n->routes; e; e = e->next) { |