summaryrefslogtreecommitdiffstats
path: root/avahi-discover-standalone
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-discover-standalone')
-rw-r--r--avahi-discover-standalone/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-discover-standalone/main.c b/avahi-discover-standalone/main.c
index 296b56d..bfc270d 100644
--- a/avahi-discover-standalone/main.c
+++ b/avahi-discover-standalone/main.c
@@ -242,7 +242,7 @@ static void update_label(struct Service *s, const gchar *hostname, const AvahiAd
gchar t[512], address[64], *txt_s;
if (a && hostname) {
- char na[256];
+ char na[AVAHI_ADDRESS_STR_MAX];
avahi_address_snprint(na, sizeof(na), a);
snprintf(address, sizeof(address), "%s/%s:%u", hostname, na, port);