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.
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index f6577a9..0e74b65 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -1426,7 +1426,7 @@
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);