X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fsimple-protocol.c;h=6c6f125974b32d79bbb1233e515503776bf47ccb;hb=94d2753047cff1e9223e42736884e4d51348b45a;hp=4844ca49f1094bb2e7a5814ec0a75f7185d3f4c3;hpb=81a128c7a13247762b80b3928c20532b914cbd4b;p=catta diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 4844ca4..6c6f125 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -35,8 +35,10 @@ #include #include #include + #include #include +#include #include "simple-protocol.h" #include "main.h" @@ -181,7 +183,7 @@ static void host_name_resolver_callback( if (event == AVAHI_RESOLVER_FAILURE) client_output_printf(c, "%+i %s\n", avahi_server_errno(avahi_server), avahi_strerror(avahi_server_errno(avahi_server))); else if (event == AVAHI_RESOLVER_FOUND) { - char t[64]; + char t[AVAHI_ADDRESS_STR_MAX]; avahi_address_snprint(t, sizeof(t), a); client_output_printf(c, "+ %i %u %s %s\n", iface, protocol, hostname, t); } @@ -223,7 +225,7 @@ static void dns_server_browser_callback( void* userdata) { Client *c = userdata; - char t[64]; + char t[AVAHI_ADDRESS_STR_MAX]; assert(c);