]> git.meshlink.io Git - catta/commitdiff
* avahi-common/malloc.c: va_copy the va_list before using it as we might want it...
authorTrent Lloyd <lathiat@bur.st>
Sun, 28 Aug 2005 18:49:39 +0000 (18:49 +0000)
committerTrent Lloyd <lathiat@bur.st>
Sun, 28 Aug 2005 18:49:39 +0000 (18:49 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@472 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-common/malloc.c

index 2c03d8fa86306c004a3b77dc75c89b652ab689b5..0dd4eb0db6e31b4768f70d47cab7024a85f26ee8 100644 (file)
@@ -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);