summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2003-12-19 21:21:12 +0000
committerKristian Rietveld <kristian@src.gnome.org>2003-12-19 21:21:12 +0000
commit30d9f88996c6cf5148837063ea45cef3f17c96da (patch)
tree899275545245db312b0a81e2d89eabdbd424fefa /gtk
parent8a834dce942ee9714475da73467d6220412ece94 (diff)
downloadgtk+-30d9f88996c6cf5148837063ea45cef3f17c96da.tar.gz
use strstr instead of strcmp (#117127, suggestion from Soeren Sandmann).
Fri Dec 19 22:18:19 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr instead of strcmp (#117127, suggestion from Soeren Sandmann).
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktreeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 59c3ff9a6a..4222153b04 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11663,7 +11663,7 @@ gtk_tree_view_search_equal_func (GtkTreeModel *model,
key_len = strlen (case_normalized_key);
- if (!strncmp (case_normalized_key, case_normalized_string, key_len))
+ if (strstr (case_normalized_string, case_normalized_key))
retval = FALSE;
}
else