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 --- examples/client-browse-services.c | 2 +- examples/core-browse-services.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c index 7918cad..3bbed11 100644 --- a/examples/client-browse-services.c +++ b/examples/client-browse-services.c @@ -62,7 +62,7 @@ static void resolve_callback( break; case AVAHI_RESOLVER_FOUND: { - char a[128], *t; + char a[AVAHI_ADDRESS_STR_MAX], *t; fprintf(stderr, "Service '%s' of type '%s' in domain '%s':\n", name, type, domain); diff --git a/examples/core-browse-services.c b/examples/core-browse-services.c index 5de47b3..57fafe4 100644 --- a/examples/core-browse-services.c +++ b/examples/core-browse-services.c @@ -73,7 +73,7 @@ static void resolve_callback( break; case AVAHI_RESOLVER_FOUND: { - char a[128], *t; + char a[AVAHI_ADDRESS_STR_MAX], *t; fprintf(stderr, "(Resolver) Service '%s' of type '%s' in domain '%s':\n", name, type, domain); -- cgit