* src/textview.c
Fix off-by-one
+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
2004-08-11 [colin] 0.9.12cvs57.3
* src/message_search.c
( 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.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
BINARY_AGE=0
EXTRA_VERSION=57
EXTRA_RELEASE=
BINARY_AGE=0
EXTRA_VERSION=57
EXTRA_RELEASE=
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
text = strdup(gtk_text_buffer_get_text(buffer, &iter,
&real_end, FALSE));
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);
}
found = (strncasecmp(text+i, str, strlen(str)) == 0);
}
text = strdup(gtk_text_buffer_get_text(buffer, &real_start,
&iter, FALSE));
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);
}
found = (strncasecmp(text+i, str, strlen(str)) == 0);
}