summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-05-29 23:55:17 -0300
committerGitHub <noreply@github.com>2019-05-29 23:55:17 -0300
commit0ad79902fc5f4219feef1fec2ee7b5dfd3f34f98 (patch)
tree603415acae0525e1e09f1a0a2a0c362766783ab3 /lib/prefix.c
parentfc37d4fe0d22aafcaac0c71cc41e426ef7b8a71d (diff)
parent67c726a10d90b9edc02e99e5a9064d14f9920309 (diff)
Merge pull request #4267 from qlyoung/fix-misc-compile-warnings
Fix misc compile warnings, remove strcpy & strcat
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index d2a4c3a432..42d202ddbc 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -1365,7 +1365,7 @@ void prefix_mcast_inet4_dump(const char *onfail, struct in_addr addr,
int save_errno = errno;
if (addr.s_addr == INADDR_ANY)
- strcpy(buf, "*");
+ strlcpy(buf, "*", buf_size);
else {
if (!inet_ntop(AF_INET, &addr, buf, buf_size)) {
if (onfail)