From: Lennart Poettering Date: Fri, 21 Oct 2005 13:54:18 +0000 (+0000) Subject: fix size of escaped_name in avahi_service_name_join() X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=865d5b0bd2175e43feeeaf9d07624ce5023b9b99;p=catta 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 --- 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];