mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
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.
This commit is contained in:
parent
cf795c5ded
commit
a6d614bcb7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user