From aa157bc129efe89e13972c40a283df9a3ca46480 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 1 Nov 2005 18:39:49 +0000 Subject: [PATCH] remove array size warning git-svn-id: file:///home/lennart/svn/public/avahi/trunk@919 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-dnsconfd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avahi-dnsconfd/main.c b/avahi-dnsconfd/main.c index 327d738..b384a03 100644 --- a/avahi-dnsconfd/main.c +++ b/avahi-dnsconfd/main.c @@ -287,7 +287,7 @@ static int new_line(const char *l) { AvahiIfIndex interface; AvahiProtocol protocol; int i_interface, i_protocol, port; - char a[64]; + char a[AVAHI_ADDRESS_STR_MAX]; assert(state == BROWSING); @@ -296,7 +296,7 @@ static int new_line(const char *l) { return -1; } - if (sscanf(l+1, "%i %i %64s %i", &i_interface, &i_protocol, a, &port) != 4) { + if (sscanf(l+1, "%i %i %39s %i", &i_interface, &i_protocol, a, &port) != 4) { daemon_log(LOG_ERR, "Failed to parse browsing line: %s", l); return -1; } -- 2.39.5