curses decgraphics bit

Array bounds error; thinko rather than typo.
This commit is contained in:
PatR
2019-10-14 02:53:19 -07:00
parent 32e2d7cfc5
commit d550a33167

View File

@@ -595,7 +595,7 @@ curses_convert_glyph(boolean decgraphics, int ch, int glyph)
convindx = ch - 0x5f;
/* if it's in the lower case block of ASCII (which includes
a few punctuation characters), use the conversion table */
if (convindx >= 0 && convindx <= SIZE(decchars)) {
if (convindx >= 0 && convindx < SIZE(decchars)) {
ch = decchars[convindx];
/* in case ACS_foo maps to 0 when current terminal is unable
to handle a particular character; if so, revert to default