Mercurial > pidgin
comparison libpurple/protocols/silc/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 |
---|---|
1250 /* Find the entry that closest matches to the | 1250 /* Find the entry that closest matches to the |
1251 buddy nickname. */ | 1251 buddy nickname. */ |
1252 SilcClientEntry entry; | 1252 SilcClientEntry entry; |
1253 silc_dlist_start(clients); | 1253 silc_dlist_start(clients); |
1254 while ((entry = silc_dlist_get(clients))) { | 1254 while ((entry = silc_dlist_get(clients))) { |
1255 if (!strncasecmp(b->name, entry->nickname, | 1255 if (!g_ascii_strncasecmp(b->name, entry->nickname, |
1256 strlen(b->name))) { | 1256 strlen(b->name))) { |
1257 client_entry = entry; | 1257 client_entry = entry; |
1258 break; | 1258 break; |
1259 } | 1259 } |
1260 } | 1260 } |