From f35e8d843117f9e1b8929a3cce8344baef75a389 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 1 Jun 2004 10:24:25 +0000 Subject: [PATCH] Fix silly bug --- contrib/tsearch2/ts_stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tsearch2/ts_stat.c b/contrib/tsearch2/ts_stat.c index 5552957123..7995406f43 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;