# HG changeset patch # User Jeffrey Connelly # Date 1186942289 0 # Node ID 1a11b26fcb11bdba65f25927c54091ebc378c41e # Parent 8b3ca7be9b724b52c8e187aa2b7dbf1906c288ad Replace non-portable stricmp() with two calls to strcmp(), one uppercase and one lowercase. Needed because Pidgin sends links as (capitals). diff -r 8b3ca7be9b72 -r 1a11b26fcb11 libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Sun Aug 12 07:45:30 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Sun Aug 12 18:11:29 2007 +0000 @@ -1153,19 +1153,19 @@ * Currently, the 's' value will be overwritten when b/i/u is nested * within another one, and only the inner-most formatting will be * applied to the text. */ - if (!stricmp(root->name, "root")) { + if (!strcmp(root->name, "root")) { *begin = g_strdup(""); *end = g_strdup(""); - } else if (!stricmp(root->name, "b")) { + } else if (!strcmp(root->name, "b") || !strcmp(root->name, "B")) { *begin = g_strdup_printf("", MSIM_TEXT_BOLD); *end = g_strdup(""); - } else if (!stricmp(root->name, "i")) { + } else if (!strcmp(root->name, "i") || !strcmp(root->name, "I")) { *begin = g_strdup_printf("", MSIM_TEXT_ITALIC); *end = g_strdup(""); - } else if (!stricmp(root->name, "u")) { + } else if (!strcmp(root->name, "u") || !strcmp(root->name, "U")) { *begin = g_strdup_printf("", MSIM_TEXT_UNDERLINE); *end = g_strdup(""); - } else if (!stricmp(root->name, "a")) { + } else if (!strcmp(root->name, "a") || !strcmp(root->name, "A")) { const gchar *href, *link_text; href = xmlnode_get_attrib(root, "href"); @@ -1201,7 +1201,7 @@ root->child = NULL; *end = g_strdup(""); - } else if (!stricmp(root->name, "font")) { + } else if (!strcmp(root->name, "font") || !strcmp(root->name, "FONT")) { const gchar *size; const gchar *face;