From: Teodor Sigaev Date: Wed, 21 Dec 2005 13:08:14 +0000 (+0000) Subject: Fix word's length in pg_regexec call X-Git-Tag: REL8_0_6~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba6e1b2e729760f8a8862e7301350f6776d83ae5;p=thirdparty%2Fpostgresql.git Fix word's length in pg_regexec call --- diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index 54b01e8ed73..0d8d072ae5c 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -813,7 +813,7 @@ CheckAffix(const char *word, size_t len, AFFIX * Affix, char flagflags, char *ne data = (pg_wchar *) palloc((dat_len + 1) * sizeof(pg_wchar)); data_len = pg_mb2wchar_with_len(newword, data, dat_len); - if (!(err = pg_regexec(&(Affix->reg.regex), data, dat_len, NULL, 1, subs, 0))) + if (!(err = pg_regexec(&(Affix->reg.regex), data, data_len, NULL, 1, subs, 0))) { pfree(data); return newword;