diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-25 02:43:29 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-25 02:49:39 +0200 |
commit | 0af35d90a125952d04aa892522b6be324f2dfbf7 (patch) | |
tree | 30a64161c4e98d6695d8c3104d4dba1c41d8e767 /zebra/zebra_mroute.c | |
parent | pimd: Cleanup a variety of SA issues (diff) | |
download | frr-0af35d90a125952d04aa892522b6be324f2dfbf7.tar.xz frr-0af35d90a125952d04aa892522b6be324f2dfbf7.zip |
*: fix assorted issues detected by Coverity Scan
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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 c4d674df2..75d5d5d62 100644 --- a/zebra/zebra_mroute.c +++ b/zebra/zebra_mroute.c @@ -48,8 +48,8 @@ int zebra_ipmr_route_stats(struct zserv *client, int fd, u_short length, char sbuf[40]; char gbuf[40]; - strcpy(sbuf, inet_ntoa(mroute.sg.src)); - strcpy(gbuf, inet_ntoa(mroute.sg.grp)); + strlcpy(sbuf, inet_ntoa(mroute.sg.src), sizeof(sbuf)); + strlcpy(gbuf, inet_ntoa(mroute.sg.grp), sizeof(gbuf)); zlog_debug("Asking for (%s,%s) mroute information", sbuf, gbuf); } |