From 865d5b0bd2175e43feeeaf9d07624ce5023b9b99 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 Oct 2005 13:54:18 +0000 Subject: [PATCH] fix size of escaped_name in avahi_service_name_join() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@834 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-common/domain.c b/avahi-common/domain.c index e82411f..988ba7e 100644 --- a/avahi-common/domain.c +++ b/avahi-common/domain.c @@ -491,7 +491,7 @@ int avahi_domain_ends_with(const char *domain, const char *suffix) { } int avahi_service_name_join(char *p, size_t size, const char *name, const char *type, const char *domain) { - char escaped_name[AVAHI_LABEL_MAX]; + char escaped_name[AVAHI_LABEL_MAX*4]; char normalized_type[AVAHI_DOMAIN_NAME_MAX]; char normalized_domain[AVAHI_DOMAIN_NAME_MAX]; -- 2.39.5