diff options
author | Teodor Sigaev | 2005-12-21 13:07:38 +0000 |
---|---|---|
committer | Teodor Sigaev | 2005-12-21 13:07:38 +0000 |
commit | dacf7e774d6b53c9a1fe2fd09a109b38fa8eb214 (patch) | |
tree | 9da51d7239ffeb87ce7b29fae2cf0e6aafacd79a | |
parent | ba7fd49de5e32485c343187446fdd8cf656471c8 (diff) |
Fix word's length in pg_regexec call
-rw-r--r-- | contrib/tsearch2/ispell/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index 9999983cc83..7fb720f582c 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -819,7 +819,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, 0, NULL, 1, subs, 0))) + if (!(err = pg_regexec(&(Affix->reg.regex), data, data_len, 0, NULL, 1, subs, 0))) { pfree(data); return newword; |