From: Trent Lloyd Date: Sun, 28 Aug 2005 18:56:03 +0000 (+0000) Subject: * Yeh, maybe we should use the copied value instead of the old one... X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=6fc2d9e75412ef168ef3b09c091e5821fc39b99a;p=catta * Yeh, maybe we should use the copied value instead of the old one... git-svn-id: file:///home/lennart/svn/public/avahi/trunk@474 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-common/malloc.c b/avahi-common/malloc.c index 96ad1de..52e0962 100644 --- a/avahi-common/malloc.c +++ b/avahi-common/malloc.c @@ -207,7 +207,7 @@ char *avahi_strdup_vprintf(const char *fmt, va_list ap) { va_copy (ap2, ap); - n = vsnprintf(buf, len, fmt, ap); + n = vsnprintf(buf, len, fmt, ap2); va_end (ap2);