e55cb10dee
use strlcpy instead. itojun@ ok, submitted and accepted upstream
13 lines
638 B
Plaintext
13 lines
638 B
Plaintext
$OpenBSD: patch-ospf6d_ospf6_message_c,v 1.1 2003/06/19 13:58:05 avsm Exp $
|
|
--- ospf6d/ospf6_message.c.orig Wed Jun 18 03:00:14 2003
|
|
+++ ospf6d/ospf6_message.c Thu Jun 19 02:18:41 2003
|
|
@@ -1421,7 +1421,7 @@ ospf6_message_send (unsigned char type,
|
|
if (o6i->lladdr)
|
|
inet_ntop (AF_INET6, o6i->lladdr, src_name, sizeof (src_name));
|
|
else
|
|
- memcpy (src_name, "Unknown", sizeof (src_name));
|
|
+ strlcpy (src_name, "Unknown", sizeof (src_name));
|
|
zlog_info ("Send %s on %s",
|
|
ospf6_message_type_string[type], o6i->interface->name);
|
|
zlog_info (" %s -> %s", src_name, dst_name);
|