From 9eb003ff43d74194f602f6eff0e3670837be7fff Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Sun, 19 Jul 2009 15:49:49 +0000 Subject: missing va_end in abuf_dprn. ok ratchov@ --- usr.bin/aucat/abuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/aucat/abuf.c') 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 * @@ -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__) -- cgit v1.2.3