From c0eb12ae8965571be6afe8c02e5f9d9cc70d073a Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Sun, 28 Aug 2005 18:49:39 +0000 Subject: [PATCH] * 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 --- avahi-common/malloc.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5