commit 9d42db9fd4627178ae545ca05b640ed1539f60b1 from: Colin Leroy date: Wed Aug 11 17:21:39 2004 UTC 2004-08-11 [colin] 0.9.12cvs57.4 * src/textview.c Fix off-by-one commit - 613f9cdc75d627ee113c4eb0f09c4d1cb61df9fb commit + 9d42db9fd4627178ae545ca05b640ed1539f60b1 blob - 89dabdc700deeb790a922906c53f49e2406e4b5e blob + 28d7b4d67d362b9eff9ac800d79e7d2bb25accaa --- ChangeLog-gtk2.claws +++ ChangeLog-gtk2.claws @@ -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 blob - 6b586c28f87eaf7ab92894864fb3b4fc8b8bbefb blob + 886014579b0ea3028e9e397ac511d55e2c16707a --- PATCHSETS +++ PATCHSETS @@ -114,3 +114,4 @@ ( 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 blob - 9d53c4a95105845f34efe46caf6372cc4ad102cd blob + 4d03ee6659fc2e4eefeeedec0b926acfc8aeafd9 --- configure.ac +++ configure.ac @@ -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} blob - d9b839724577ec52b55d31210341b4317825307e blob + 724370e057ef48572927422ec047daf8d0780c68 --- src/textview.c +++ src/textview.c @@ -1504,7 +1504,7 @@ gboolean textview_search_string(TextView *textview, co 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 *tex 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); }