MatchRule: Do not go back before the pre-ptr

pre_ptr is already one byte before the current letter, so we do not want
to subtract 1 again. Otherwise this would for instance underflow word_iz
of addPluralSuffixes.
This commit is contained in:
Samuel Thibault
2022-03-15 04:08:51 +01:00
parent 005a590786
commit cd33c4042a
+1 -1
View File
@@ -2049,7 +2049,7 @@ static void MatchRule(Translator *tr, char *word[], char *word_start, int group_
break;
case RULE_NOVOWELS:
{
char *p = pre_ptr - letter_xbytes - 1;
char *p = pre_ptr - letter_xbytes;
while (letter_w != RULE_SPACE) {
if (IsLetter(tr, letter_w, LETTERGP_VOWEL2)) {
failed = 1;