From e1bd49a1e1823eab71c293efd1bd0c9b83c350c9 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 7 Apr 2007 12:52:27 +0000 Subject: 20070407-1350 more updates from plan 9 pc kernel, and a few unreachable fixes(!) --- os/ip/iproute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/ip/iproute.c') diff --git a/os/ip/iproute.c b/os/ip/iproute.c index 3229435e..1888a89c 100644 --- a/os/ip/iproute.c +++ b/os/ip/iproute.c @@ -662,7 +662,7 @@ sprintroute(Route *r, Routewalk *rw) iname = "-"; if(nifc != -1) { iname = ifbuf; - sprint(ifbuf, "%d", nifc); + snprint(ifbuf, sizeof ifbuf, "%d", nifc); } p = seprint(rw->p, rw->e, rformat, addr, mask, gate, t, r->tag, iname); if(rw->o < 0){ -- cgit v1.2.3