]> git.meshlink.io Git - catta/commitdiff
fix size of escaped_name in avahi_service_name_join()
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Oct 2005 13:54:18 +0000 (13:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Oct 2005 13:54:18 +0000 (13:54 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@834 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-common/domain.c

index e82411f185946b6edc9bd2dda27484d180549031..988ba7e5d939e23b6d964767b23d60daeaa98bf7 100644 (file)
@@ -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];