From 3adbda2cd5be48b7c630325f0f92e315d7eb2cfb Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Mon, 17 Oct 2005 20:07:43 +0000 Subject: * Add custom user-specific configure flags to bootstrap.sh * Add new constant AVAHI_ADDRESS_STR_MAX for use with avahi_address_snprint arr ays * Update all our code to use AVAHI_ADDRESS_STR_MAX * Add avahi_client_add_address to avahi-client * Add avahi_client_add_address test to avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@800 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-discover-standalone/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'avahi-discover-standalone') 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); -- cgit