2004-08-11 [colin] 0.9.12cvs57.4
authorColin Leroy <colin@colino.net>
Wed, 11 Aug 2004 17:21:39 +0000 (17:21 +0000)
committerColin Leroy <colin@colino.net>
Wed, 11 Aug 2004 17:21:39 +0000 (17:21 +0000)
* src/textview.c
Fix off-by-one

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/textview.c

index 89dabdc700deeb790a922906c53f49e2406e4b5e..28d7b4d67d362b9eff9ac800d79e7d2bb25accaa 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-11 [colin]     0.9.12cvs57.4
+
+       * src/textview.c
+               Fix off-by-one
+
 2004-08-11 [colin]     0.9.12cvs57.3
 
        * src/message_search.c
index 6b586c28f87eaf7ab92894864fb3b4fc8b8bbefb..886014579b0ea3028e9e397ac511d55e2c16707a 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.13.2.7 -r 1.13.2.8 src/common/socket.c; ) > 0.9.12cvs55.4.patchset
 ( cvs diff -u -r 1.15.2.6 -r 1.15.2.7 src/summary_search.c; ) > 0.9.12cvs57.2.patchset
 ( cvs diff -u -r 1.3.12.4 -r 1.3.12.5 src/message_search.c; cvs diff -u -r 1.15.2.7 -r 1.15.2.8 src/summary_search.c; cvs diff -u -r 1.96.2.15 -r 1.96.2.16 src/textview.c; ) > 0.9.12cvs57.3.patchset
+( cvs diff -u -r 1.96.2.16 -r 1.96.2.17 src/textview.c; ) > 0.9.12cvs57.4.patchset
index 9d53c4a95105845f34efe46caf6372cc4ad102cd..4d03ee6659fc2e4eefeeedec0b926acfc8aeafd9 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=57
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.3
+EXTRA_GTK2_VERSION=.4
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index d9b839724577ec52b55d31210341b4317825307e..724370e057ef48572927422ec047daf8d0780c68 100644 (file)
@@ -1504,7 +1504,7 @@ gboolean textview_search_string(TextView *textview, const gchar *str,
                text = strdup(gtk_text_buffer_get_text(buffer, &iter, 
                                                       &real_end, FALSE));
                
-               while (!found && i++ < strlen(text)) {
+               while (!found && i++ < strlen(text) - 1) {
                        found = (strncasecmp(text+i, str, strlen(str)) == 0);
                }
                
@@ -1570,7 +1570,7 @@ gboolean textview_search_string_backward(TextView *textview, const gchar *str,
                text = strdup(gtk_text_buffer_get_text(buffer, &real_start, 
                                                       &iter, FALSE));
 
-               while (!found && i-- >= 0) {
+               while (!found && i-- > 0) {
                        found = (strncasecmp(text+i, str, strlen(str)) == 0);
                }