From ef3ab535621e03253dbbe30e42498a6294348b2a Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 2 Sep 2018 07:46:50 +0200 Subject: [PATCH] [mdns] Fix compile warning "directive output may be truncated" (provided string length might not be big enough for ipv6 addresses) --- src/mdns_avahi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdns_avahi.c b/src/mdns_avahi.c index f88863d5..7323dfb8 100644 --- a/src/mdns_avahi.c +++ b/src/mdns_avahi.c @@ -555,7 +555,7 @@ static int address_check(AvahiProtocol proto, const char *hostname, const AvahiAddress *addr, int port) { char address[AVAHI_ADDRESS_STR_MAX]; - char address_log[AVAHI_ADDRESS_STR_MAX]; + char address_log[AVAHI_ADDRESS_STR_MAX + 2]; int family; int ret;