From: Trent Lloyd Date: Sun, 28 Aug 2005 18:49:39 +0000 (+0000) Subject: * avahi-common/malloc.c: va_copy the va_list before using it as we might want it... X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=c0eb12ae8965571be6afe8c02e5f9d9cc70d073a;p=catta * avahi-common/malloc.c: va_copy the va_list before using it as we might want it again. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@472 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-common/malloc.c b/avahi-common/malloc.c index 2c03d8f..0dd4eb0 100644 --- a/avahi-common/malloc.c +++ b/avahi-common/malloc.c @@ -203,6 +203,9 @@ char *avahi_strdup_vprintf(const char *fmt, va_list ap) { for (;;) { int n; char *nbuf; + va_list ap2; + + va_copy (ap2, ap); n = vsnprintf(buf, len, fmt, ap);