sd_rtnl_message_read_u32(m, IFLA_MTU, &l->mtu);
if (sd_rtnl_message_read_string(m, IFLA_IFNAME, &n) >= 0) {
- strncpy(l->name, n, sizeof(l->name));
+ strncpy(l->name, n, sizeof(l->name)-1);
char_array_0(l->name);
}
r = dns_zone_put(&a->link->llmnr_ipv4_scope->zone, a->link->llmnr_ipv4_scope, a->llmnr_address_rr, true);
if (r < 0)
- log_warning("Failed tp add A record to LLMNR zone: %s", strerror(-r));
+ log_warning("Failed to add A record to LLMNR zone: %s", strerror(-r));
r = dns_zone_put(&a->link->llmnr_ipv4_scope->zone, a->link->llmnr_ipv4_scope, a->llmnr_ptr_rr, false);
if (r < 0)
- log_warning("Failed tp add IPv6 PTR record to LLMNR zone: %s", strerror(-r));
+ log_warning("Failed to add IPv6 PTR record to LLMNR zone: %s", strerror(-r));
} else {
if (a->llmnr_address_rr) {
if (a->link->llmnr_ipv4_scope)