aboutsummaryrefslogtreecommitdiff
path: root/contactList.c
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-01-24 08:23:10 +0100
committerache <ache@ache.one>2019-01-24 08:23:10 +0100
commit93c9184aa1cd41fb8c6abb644a06234e804a8775 (patch)
tree7803fd4742c06f354c1eb94594fd2da65c3f33f4 /contactList.c
parentDon't color the text with the same color as the background (diff)
Search case insensive
Diffstat (limited to 'contactList.c')
-rw-r--r--contactList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contactList.c b/contactList.c
index 642aa19..d817120 100644
--- a/contactList.c
+++ b/contactList.c
@@ -48,7 +48,7 @@ int findContactFromName(const char* name, contact** out) {
return 1;
for(int i = 0 ; i < nbContacts ; i++) {
- if( strstr(contactList[i].display_name, name) ) {
+ if( strcasestr(contactList[i].display_name, name) ) {
*out = contactList+i;
return 0;
}