From: PatR Date: Mon, 14 Oct 2019 09:53:19 +0000 (-0700) Subject: curses decgraphics bit X-Git-Tag: v3.6.3.757eca7~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d550a33167d9b1bf841d58a2f7ce7427e3d30595;p=nethack curses decgraphics bit Array bounds error; thinko rather than typo. --- diff --git a/win/curses/cursmisc.c b/win/curses/cursmisc.c index aed91e84c..ba3ff1bc8 100644 --- a/win/curses/cursmisc.c +++ b/win/curses/cursmisc.c @@ -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