summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/term_ps.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-09-06 07:49:36 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-09-06 07:49:36 +0000
commitb1f48f4dfa92d4af9ee71c850ad7e66699854e24 (patch)
treedb000068cd4e1ac2db2cd93ad8d350f51338edf4 /usr.bin/mandoc/term_ps.c
parentfc3f793da269cd52a125664532b21784a4537ab0 (diff)
fix an off by one found by parfait
ok schwarze@ and kristaps
Diffstat (limited to 'usr.bin/mandoc/term_ps.c')
-rw-r--r--usr.bin/mandoc/term_ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term_ps.c b/usr.bin/mandoc/term_ps.c
index f3bcb6fac40..7c4a96a2056 100644
--- a/usr.bin/mandoc/term_ps.c
+++ b/usr.bin/mandoc/term_ps.c
@@ -1,4 +1,4 @@
-/* $Id: term_ps.c,v 1.11 2010/08/26 02:05:02 deraadt Exp $ */
+/* $Id: term_ps.c,v 1.12 2010/09/06 07:49:35 jsg Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -907,7 +907,7 @@ ps_pletter(struct termp *p, int c)
f = (int)p->engine.ps.lastf;
- if (c <= 32 || (c - 32 > MAXCHAR)) {
+ if (c <= 32 || (c - 32 >= MAXCHAR)) {
ps_putchar(p, ' ');
p->engine.ps.pscol += (size_t)fonts[f].gly[0].wx;
return;