From c342a7043ff2e62d40e9717d3530fdafeda5bef2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 11 Dec 2006 05:08:19 +0000 Subject: allow bit 32 to be printed; bug spotted and fix tested by dlg --- sys/kern/subr_prf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index fc64afc3e2e..d1ace01438b 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.68 2006/11/17 09:21:52 jmc Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.69 2006/12/11 05:08:18 deraadt Exp $ */ /* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */ /*- @@ -739,7 +739,7 @@ reswitch: switch (ch) { while ((n = *b++) != 0) { if (n & 0x80) n &= 0x7f; - else if (n < ' ') + else if (n <= ' ') n = n - 1; if (_uquad & (1LL << n)) { KPRINTF_PUTCHAR(tmp ? ',':'<'); -- cgit v1.2.3