diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-10-21 19:57:06 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-10-22 19:37:25 +0200 |
commit | 9bcef951be1db4f94eb985c007e4b563657af20e (patch) | |
tree | d818389f6d611c47770f002fbada358260cb43e6 /zebra/zebra_mroute.c | |
parent | ospfd: replace inet_ntoa (diff) | |
download | frr-9bcef951be1db4f94eb985c007e4b563657af20e.tar.xz frr-9bcef951be1db4f94eb985c007e4b563657af20e.zip |
zebra: replace inet_ntoa
Stop using inet_ntoa - use %pI4 or inet_ntop instead
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mroute.c')
-rw-r--r-- | zebra/zebra_mroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mroute.c b/zebra/zebra_mroute.c index 583b666e6..3af805558 100644 --- a/zebra/zebra_mroute.c +++ b/zebra/zebra_mroute.c @@ -47,8 +47,8 @@ void zebra_ipmr_route_stats(ZAPI_HANDLER_ARGS) char sbuf[40]; char gbuf[40]; - strlcpy(sbuf, inet_ntoa(mroute.sg.src), sizeof(sbuf)); - strlcpy(gbuf, inet_ntoa(mroute.sg.grp), sizeof(gbuf)); + inet_ntop(AF_INET, &mroute.sg.src, sbuf, sizeof(sbuf)); + inet_ntop(AF_INET, &mroute.sg.grp, gbuf, sizeof(gbuf)); zlog_debug("Asking for (%s,%s)[%s(%u)] mroute information", sbuf, gbuf, zvrf->vrf->name, zvrf->vrf->vrf_id); |