summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2024-08-12 05:03:29 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2024-08-12 05:03:29 +0000
commit3fa3debfa76e544091078cde0952e80c7b6b637f (patch)
treeed88fd5d31b1b5bf22cd2c9fbe65692a0940e528
parent3d7b5602f6567f76783c9b5c37c3bd8711a0da25 (diff)
Fix a crash in when printing decreased intensity unicode right quote
using bit-mapped fonts. Reported by Matthew Martin and fix confirmed by Thomas Dickey.
-rw-r--r--app/xterm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/xterm/util.c b/app/xterm/util.c
index 06de3e64f..de73d112c 100644
--- a/app/xterm/util.c
+++ b/app/xterm/util.c
@@ -3901,7 +3901,7 @@ xtermFullString16(XTermDraw * params, unsigned flags, GC gc,
(ch > NARROW_ICHAR) ||
#endif
xtermMissingChar(ch,
- (((xf >= fn) && (xf - fn) <= fMAX)
+ (((xf >= fn) && (xf - fn) < fMAX)
? XTermFontsRef(screen->fnts,
(VTFontEnum) (xf - fn))
: fp))) {