From e060ccfef22201c15d54edcb9a1b95de58c73fb9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 22 Jan 2006 14:05:59 +0000 Subject: * Merge patch from Oden Eriksson, fixing compilation on Mandriva * Fix a memory corruption bug caused by bad ap_pstrcat() git-svn-id: file:///home/lennart/svn/public/mod_dnssd/trunk@27 634eccf8-0006-0410-930e-e16565b0b7de --- src/mod_dnssd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod_dnssd.c b/src/mod_dnssd.c index 00fae6d..2075926 100644 --- a/src/mod_dnssd.c +++ b/src/mod_dnssd.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -264,7 +265,7 @@ static void assemble_services(struct runtime_data *r) { } else u = pw->pw_name; - add_service(r, NULL, 0, apr_pstrcat(p_loop, "/~", pw->pw_name), apr_pstrcat(p_loop, u, " on ", NULL), NULL, 1); + add_service(r, NULL, 0, apr_pstrcat(p_loop, "/~", pw->pw_name, NULL), apr_pstrcat(p_loop, u, " on ", NULL), NULL, 1); } endpwent(); -- cgit