summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-01 01:33:03 +0200
committerMartin Mares <mj@ucw.cz>2000-04-01 01:33:03 +0200
commita37410cbddfadca651c795e9817f66c54374a943 (patch)
tree56794f505615a0f6f205f4f070dc343b5ae19287 /proto
parent221135d6bf256c85b4aeb08881d6262f6eaadff4 (diff)
downloadbird-a37410cbddfadca651c795e9817f66c54374a943.tar
bird-a37410cbddfadca651c795e9817f66c54374a943.zip
Use bsprintf() instead of sprintf().
Diffstat (limited to 'proto')
-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 4634ae1..e885877 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