summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/abuf.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-07-19 15:49:49 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-07-19 15:49:49 +0000
commit9eb003ff43d74194f602f6eff0e3670837be7fff (patch)
tree499f24a795e88eabeb186050722a7a57df76bb5e /usr.bin/aucat/abuf.c
parent75021ff93db5f528fc8ae5ce9baca50ce6eb6ab5 (diff)
missing va_end in abuf_dprn. ok ratchov@
Diffstat (limited to 'usr.bin/aucat/abuf.c')
-rw-r--r--usr.bin/aucat/abuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/aucat/abuf.c b/usr.bin/aucat/abuf.c
index 3fcac3f0ef2..043fe15f3ea 100644
--- a/usr.bin/aucat/abuf.c
+++ b/usr.bin/aucat/abuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: abuf.c,v 1.11 2009/02/13 20:48:49 ratchov Exp $ */
+/* $OpenBSD: abuf.c,v 1.12 2009/07/19 15:49:48 martynas Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -55,6 +55,7 @@ abuf_dprn(int n, struct abuf *buf, char *fmt, ...)
buf->rproc ? buf->rproc->name : "none");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
+ va_end(ap);
}
#define ABUF_DPRN(n, buf, ...) abuf_dprn((n), (buf), __VA_ARGS__)
#define ABUF_DPR(buf, ...) abuf_dprn(1, (buf), __VA_ARGS__)