summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-05 04:18:01 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-05 04:18:01 +0200
commitcc7844e78751916acb639443c119763cafe2c684 (patch)
tree0de8d7732b953bff697eb1ba82901a8791548f14
parentd84b686f06a7f724c12dcace0ab5cb82d01885f9 (diff)
resolved: fix a message typo
-rw-r--r--src/resolve/resolved-link.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c
index e1cdd6091d..3b2c02a6a6 100644
--- a/src/resolve/resolved-link.c
+++ b/src/resolve/resolved-link.c
@@ -133,7 +133,7 @@ int link_update_rtnl(Link *l, sd_rtnl_message *m) {
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);
}
@@ -416,11 +416,11 @@ void link_address_add_rrs(LinkAddress *a, bool force_remove) {
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)