diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-01 01:33:03 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-01 01:33:03 +0200 |
commit | a37410cbddfadca651c795e9817f66c54374a943 (patch) | |
tree | 56794f505615a0f6f205f4f070dc343b5ae19287 /proto/rip/rip.c | |
parent | 221135d6bf256c85b4aeb08881d6262f6eaadff4 (diff) | |
download | bird-a37410cbddfadca651c795e9817f66c54374a943.tar bird-a37410cbddfadca651c795e9817f66c54374a943.zip |
Use bsprintf() instead of sprintf().
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 4 |
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 |