summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2003-06-19 02:18:02 +0000
committerpaul <paul>2003-06-19 02:18:02 +0000
commita6d614bcb7dba423be518fdc3e447497442bbec4 (patch)
tree3d2803b4aeeefe695291502ab5a9ea249b8b1198
parentcf795c5dedb847eceae7acf948910488a1be3fd0 (diff)
2003-06-19 Paul Jakma <paul@dishone.st>
* ospf6d/ospf6_message.c: Change memcpy() to strcpy() to prevent copying of extraneous junk - suggested by Anil Madhavapeddy <anil@recoil.org> on bug-zebra@gnu.org.
-rw-r--r--ospf6d/ospf6_message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index f6577a99..0e74b651 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -1426,7 +1426,7 @@ ospf6_message_send (unsigned char type, struct iovec *msg,
if (o6i->lladdr)
inet_ntop (AF_INET6, o6i->lladdr, src_name, sizeof (src_name));
else
- memcpy (src_name, "Unknown", sizeof (src_name));
+ strcpy (src_name, "Unknown");
zlog_info ("Send %s on %s",
ospf6_message_type_string[type], o6i->interface->name);
zlog_info (" %s -> %s", src_name, dst_name);