Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf94076 commit 0565579Copy full SHA for 0565579
contrib/tsearch2/dict_syn.c
@@ -1,4 +1,4 @@
1
-/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.13 2007/03/26 12:25:35 teodor Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.14 2007/03/28 01:28:34 tgl Exp $ */
2
3
/*
4
* ISpell interface
@@ -103,7 +103,8 @@ syn_init(PG_FUNCTION_ARGS)
103
104
while (fgets(buf, sizeof(buf), fin))
105
{
106
- pg_verifymbstr(buf, strlen(buf), false);
+ slen = strlen(buf);
107
+ pg_verifymbstr(buf, slen, false);
108
if (cur == d->len)
109
110
d->len = (d->len) ? 2 * d->len : 16;
0 commit comments