Mercurial > pidgin.yaz
diff libpurple/protocols/simple/sipmsg.c @ 16147:af92b284664a
simple-casepatch.diff from achris in ticket #98
This makes some comparisons in the SIMPLE prpl case-insensitive.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 15 Apr 2007 18:28:56 +0000 |
parents | 32c366eeeb99 |
children | 7ade887fd3f6 |
line wrap: on
line diff
--- 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);