comparison libpurple/protocols/silc10/buddy.c @ 18398:16bdcffb1c62

Use the glib strcasecmp functions everywhere, as we've had reports of problems on Windows (with Visual Studio) and the Maemo platform. This way we don't need to worry about where to include <strings.h>.
author Richard Laager <rlaager@wiktel.com>
date Sun, 01 Jul 2007 01:41:57 +0000
parents ab6d2763b8d8
children 285bb637a2b7 77a35a382a73
comparison
equal deleted inserted replaced
18397:e122b631a657 18398:16bdcffb1c62
1244 if (r->init) { 1244 if (r->init) {
1245 /* Find the entry that closest matches to the 1245 /* Find the entry that closest matches to the
1246 buddy nickname. */ 1246 buddy nickname. */
1247 int i; 1247 int i;
1248 for (i = 0; i < clients_count; i++) { 1248 for (i = 0; i < clients_count; i++) {
1249 if (!strncasecmp(b->name, clients[i]->nickname, 1249 if (!g_ascii_strncasecmp(b->name, clients[i]->nickname,
1250 strlen(b->name))) { 1250 strlen(b->name))) {
1251 clients[0] = clients[i]; 1251 clients[0] = clients[i];
1252 break; 1252 break;
1253 } 1253 }
1254 } 1254 }