diff options
Diffstat (limited to 'avahi-common')
-rw-r--r-- | avahi-common/malloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |