deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clauses

This commit is contained in:
mmnmnnmnmm 2020-07-28 20:09:53 +01:00 committed by Dan Cross
parent a2422a89c5
commit 23420c2493

View file

@ -745,7 +745,7 @@ eqn(void)
}
if(c != '\n')
while(C1 != '\n') {
if(chars[c] == PUNCT)
if(charclass(c) == PUNCT)
last = c;
else
if(c != ' ')