summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-28 18:49:39 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-28 18:49:39 +0000
commitc0eb12ae8965571be6afe8c02e5f9d9cc70d073a (patch)
tree08d5bef5c32e3a74e069fcc3cbb79153dbf3db07
parente4583f74180a1a334ce2591316a6a63d74aafd97 (diff)
* 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
-rw-r--r--avahi-common/malloc.c3
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);