diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-11 05:08:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-11 05:08:19 +0000 |
commit | c342a7043ff2e62d40e9717d3530fdafeda5bef2 (patch) | |
tree | 318b1a82bfbfd3500038ed86b0575703781bf130 /sys/kern/subr_prf.c | |
parent | 1fa769d01d87e84f7d78ea1caac21ad7b134b948 (diff) |
allow bit 32 to be printed; bug spotted and fix tested by dlg
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ? ',':'<'); |