summaryrefslogtreecommitdiff
path: root/proto/rip
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-31 23:33:03 +0000
committerMartin Mares <mj@ucw.cz>2000-03-31 23:33:03 +0000
commita37410cbddfadca651c795e9817f66c54374a943 (patch)
tree56794f505615a0f6f205f4f070dc343b5ae19287 /proto/rip
parent221135d6bf256c85b4aeb08881d6262f6eaadff4 (diff)
Use bsprintf() instead of sprintf().
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/rip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 4634ae1f..e885877d 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -504,8 +504,8 @@ rip_dump(struct proto *p)
static void
rip_get_route_info(rte *rte, byte *buf)
{
- buf += sprintf(buf, " (%d/%d)", rte->pref, rte->u.rip.metric );
- sprintf(buf, " t%04x", rte->u.rip.tag );
+ buf += bsprintf(buf, " (%d/%d)", rte->pref, rte->u.rip.metric );
+ bsprintf(buf, " t%04x", rte->u.rip.tag );
}
static int