From 93c9184aa1cd41fb8c6abb644a06234e804a8775 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 24 Jan 2019 08:23:10 +0100 Subject: Search case insensive --- contactList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contactList.c') 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; } -- cgit v1.2.3