diff options
author | 1998-01-24 17:54:07 +0000 | |
---|---|---|
committer | 1998-01-24 17:54:07 +0000 | |
commit | 388062720fe2b1f9b20308d26157f4ef22bf14cc (patch) | |
tree | d3e7424f5a886ab0f0b81b18f2fcdeeb1e10c3fe /sys/kern/subr_prf.c | |
parent | Fix error message. (diff) | |
download | wireguard-openbsd-388062720fe2b1f9b20308d26157f4ef22bf14cc.tar.xz wireguard-openbsd-388062720fe2b1f9b20308d26157f4ef22bf14cc.zip |
NULL deref
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 12 |
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 */ |