Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/adhoccommands.c @ 31335:2d029c5cd305
jabber: Protect against broken OSes and printf("%s", NULL) crashes
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 02 Nov 2010 02:06:13 +0000 |
parents | 9ae3e70a327b |
children | 3caef255ad47 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/adhoccommands.c Tue Nov 02 01:57:06 2010 +0000 +++ b/libpurple/protocols/jabber/adhoccommands.c Tue Nov 02 02:06:13 2010 +0000 @@ -125,7 +125,8 @@ xmlnode_set_attrib(command,"node",actionInfo->node); /* cancel is handled differently on ad-hoc commands than regular forms */ - if(!strcmp(xmlnode_get_namespace(result),"jabber:x:data") && !strcmp(xmlnode_get_attrib(result, "type"),"cancel")) { + if (purple_strequal(xmlnode_get_namespace(result), "jabber:x:data") && + purple_strequal(xmlnode_get_attrib(result, "type"), "cancel")) { xmlnode_set_attrib(command,"action","cancel"); } else { if(actionhandle)