]> git.meshlink.io Git - catta/commitdiff
* Yeh, maybe we should use the copied value instead of the old one...
authorTrent Lloyd <lathiat@bur.st>
Sun, 28 Aug 2005 18:56:03 +0000 (18:56 +0000)
committerTrent Lloyd <lathiat@bur.st>
Sun, 28 Aug 2005 18:56:03 +0000 (18:56 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@474 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-common/malloc.c

index 96ad1deabded7d8ad4883cb28b243032cb5d8c86..52e0962df25a25607f221435d2f16593b5fd8222 100644 (file)
@@ -207,7 +207,7 @@ char *avahi_strdup_vprintf(const char *fmt, va_list ap) {
 
         va_copy (ap2, ap);
         
-        n = vsnprintf(buf, len, fmt, ap);
+        n = vsnprintf(buf, len, fmt, ap2);
 
         va_end (ap2);