From a6d614bcb7dba423be518fdc3e447497442bbec4 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 19 Jun 2003 02:18:02 +0000 Subject: 2003-06-19 Paul Jakma * ospf6d/ospf6_message.c: Change memcpy() to strcpy() to prevent copying of extraneous junk - suggested by Anil Madhavapeddy on bug-zebra@gnu.org. --- ospf6d/ospf6_message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospf6d') 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); -- cgit v1.2.1