summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/simple-protocol.c
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-10-17 20:07:43 +0000
committerTrent Lloyd <lathiat@bur.st>2005-10-17 20:07:43 +0000
commit3adbda2cd5be48b7c630325f0f92e315d7eb2cfb (patch)
treefa98de69267ed3e7f1a3e915b2632afebe8ddb38 /avahi-daemon/simple-protocol.c
parentc1c236e751d126f3aeffe3ccf5da889dbf853b2f (diff)
* 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
Diffstat (limited to 'avahi-daemon/simple-protocol.c')
-rw-r--r--avahi-daemon/simple-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c
index 4844ca4..aa81cd7 100644
--- a/avahi-daemon/simple-protocol.c
+++ b/avahi-daemon/simple-protocol.c
@@ -181,7 +181,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 +223,7 @@ static void dns_server_browser_callback(
void* userdata) {
Client *c = userdata;
- char t[64];
+ char t[AVAHI_ADDRESS_STR_MAX];
assert(c);