diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2004-06-01 10:24:25 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2004-06-01 10:24:25 +0000 |
commit | f35e8d843117f9e1b8929a3cce8344baef75a389 (patch) | |
tree | 7397cbf57a9b406b8efde434fca77a877db41fd6 | |
parent | ba0f38d6018a20214c2a6b48cba0e1400a9b91bf (diff) |
Fix silly bug
-rw-r--r-- | contrib/tsearch2/ts_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/ts_stat.c b/contrib/tsearch2/ts_stat.c index 55529571233..7995406f43f 100644 --- a/contrib/tsearch2/ts_stat.c +++ b/contrib/tsearch2/ts_stat.c @@ -457,7 +457,7 @@ ts_stat_sql(text *txt, text *ws) if ( ws ) { char *buf; buf = VARDATA(ws); - while( buf - VARDATA(ws) < VARSIZE(buf) - VARHDRSZ ) { + while( buf - VARDATA(ws) < VARSIZE(ws) - VARHDRSZ ) { switch (tolower(*buf)) { case 'a': stat->weight |= 1 << 3; |