diff options
Diffstat (limited to 'avahi-common')
-rw-r--r-- | avahi-common/malloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/avahi-common/malloc.c b/avahi-common/malloc.c index 0dd4eb0..96ad1de 100644 --- a/avahi-common/malloc.c +++ b/avahi-common/malloc.c @@ -209,6 +209,8 @@ char *avahi_strdup_vprintf(const char *fmt, va_list ap) { n = vsnprintf(buf, len, fmt, ap); + va_end (ap2); + if (n >= 0 && n < (int) len) return buf; |