]> granicus.if.org Git - postgresql/commitdiff
Fix silly bug
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 1 Jun 2004 10:24:25 +0000 (10:24 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 1 Jun 2004 10:24:25 +0000 (10:24 +0000)
contrib/tsearch2/ts_stat.c

index 555295712336698b2df7700551216e7a85fd786a..7995406f43f07898960b2990a0ccb0d163811fcd 100644 (file)
@@ -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;