summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-01-24 17:54:08 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-01-24 17:54:08 +0000
commit01473e56fe2479c167859cc9c2232d82dceb0060 (patch)
tree6fc999e15538db94b4231410c8c80acd3b4676bf /sys/kern/subr_prf.c
parentd8079ad6cdd9d69a418e278e21329309e50d6496 (diff)
NULL deref
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 2b9be4e3cbc..bd710c7dcb3 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.20 1998/01/21 21:59:38 deraadt Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.21 1998/01/24 17:54:07 niklas Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -514,8 +514,8 @@ printf(fmt, va_alist)
}
/*
- * vprintf: print a message to the console and the log [already have
- * va_alist]
+ * vprintf: print a message to the console and the log [already have a
+ * va_list]
*/
void
@@ -557,8 +557,8 @@ sprintf(buf, fmt, va_alist)
}
/*
- * vprintf: print a message to the console and the log [already have
- * va_alist]
+ * vsprintf: print a message to the provided buffer [already have a
+ * va_list]
*/
int
@@ -571,7 +571,7 @@ vsprintf(buf, fmt, ap)
savintr = consintr; /* disable interrupts */
consintr = 0;
- kprintf(fmt, TOBUFONLY, NULL, NULL, ap);
+ kprintf(fmt, TOBUFONLY, NULL, buf, ap);
if (!panicstr)
logwakeup();
consintr = savintr; /* reenable interrupts */