# HG changeset patch # User Richard Laager # Date 1176661736 0 # Node ID af92b284664ac9507a0c7b54f9c5b9a2148f4465 # Parent 7a22ddc43685e6a78b4b959aa460dc365b55a058 simple-casepatch.diff from achris in ticket #98 This makes some comparisons in the SIMPLE prpl case-insensitive. diff -r 7a22ddc43685 -r af92b284664a libpurple/protocols/simple/simple.c --- a/libpurple/protocols/simple/simple.c Sun Apr 15 18:19:33 2007 +0000 +++ b/libpurple/protocols/simple/simple.c Sun Apr 15 18:28:56 2007 +0000 @@ -1235,9 +1235,9 @@ while(tmp && tmp < acceptheader + strlen(acceptheader)) { gchar *tmp2 = strchr(tmp, ','); if(tmp2) *tmp2 = '\0'; - if(!strcmp("application/pidf+xml", tmp)) + if(!strcasecmp("application/pidf+xml", tmp)) foundpidf = TRUE; - if(!strcmp("application/xpidf+xml", tmp)) + if(!strcasecmp("application/xpidf+xml", tmp)) foundxpidf = TRUE; if(tmp2) { *tmp2 = ','; diff -r 7a22ddc43685 -r af92b284664a libpurple/protocols/simple/sipmsg.c --- a/libpurple/protocols/simple/sipmsg.c Sun Apr 15 18:19:33 2007 +0000 +++ b/libpurple/protocols/simple/sipmsg.c Sun Apr 15 18:28:56 2007 +0000 @@ -180,7 +180,7 @@ GSList *tmp = msg->headers; while(tmp) { elem = tmp->data; - if(strcmp(elem->name, name)==0) { + if(strcasecmp(elem->name, name)==0) { msg->headers = g_slist_remove(msg->headers, elem); g_free(elem->name); g_free(elem->value); @@ -198,7 +198,7 @@ tmp = msg->headers; while(tmp) { elem = tmp->data; - if(strcmp(elem->name,name)==0) { + if(strcasecmp(elem->name, name)==0) { return elem->value; } tmp = g_slist_next(tmp);