Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/presence.c @ 29111:4ab6f0479bc5
strchr() is safe when searching for an ASCII character in UTF8 strings.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 01 Dec 2009 16:46:57 +0000 |
parents | cfca0217d162 |
children | f267c1608102 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Tue Dec 01 04:56:47 2009 +0000 +++ b/libpurple/protocols/jabber/presence.c Tue Dec 01 16:46:57 2009 +0000 @@ -433,7 +433,7 @@ JabberPresenceCapabilities *userdata) { JabberBuddyResource *jbr; - char *resource = g_utf8_strchr(userdata->from, -1, '/'); + char *resource = strchr(userdata->from, '/'); if (resource) resource += 1;