projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1200fc5
)
Fix word's length in pg_regexec call
author
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 21 Dec 2005 13:08:14 +0000
(13:08 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 21 Dec 2005 13:08:14 +0000
(13:08 +0000)
contrib/tsearch2/ispell/spell.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/ispell/spell.c
b/contrib/tsearch2/ispell/spell.c
index 54b01e8ed73b6bf9e727ada5b7d27607da0fdfa3..0d8d072ae5c9b0cc32cc0b41abb610260ec1e6d7 100644
(file)
--- 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, dat
a
_len, NULL, 1, subs, 0)))
{
pfree(data);
return newword;