# HG changeset patch # User Mark Doliner # Date 1091315332 0 # Node ID 3ec0b63d4f2ef3dbd11b856a95c1fa4a8cde5838 # Parent abacf29577b2dfd8b066d3fa327f1f7b41fb851c [gaim-migrate @ 10469] As far as I know oscar buddy comments are plain-text. Fixes bug 999922. committer: Tailor Script diff -r abacf29577b2 -r 3ec0b63d4f2e src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Sat Jul 31 23:03:47 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sat Jul 31 23:08:52 2004 +0000 @@ -561,7 +561,7 @@ g_free(tmp); } } else { - char *tmp = aim_ssi_itemlist_findparentname(od->sess->ssi.local, b->name); + tmp = aim_ssi_itemlist_findparentname(od->sess->ssi.local, b->name); if (aim_ssi_waitingforauth(od->sess->ssi.local, tmp, b->name)) oscar_string_append(str, newline, _("Status"), _("Not Authorized")); else @@ -570,7 +570,7 @@ } if ((bi != NULL) && (bi->ipaddr != 0)) { - char *tmp = g_strdup_printf("%hhu.%hhu.%hhu.%hhu", + tmp = g_strdup_printf("%hhu.%hhu.%hhu.%hhu", (bi->ipaddr & 0xff000000) >> 24, (bi->ipaddr & 0x00ff0000) >> 16, (bi->ipaddr & 0x0000ff00) >> 8, @@ -588,8 +588,10 @@ if ((b != NULL) && (b->name != NULL) && (g != NULL) && (g->name != NULL)) { tmp = aim_ssi_getcomment(od->sess->ssi.local, g->name, b->name); if (tmp != NULL) { - oscar_string_append(str, newline, _("Buddy Comment"), tmp); + char *tmp2 = g_markup_escape_text(tmp, strlen(tmp)); g_free(tmp); + oscar_string_append(str, newline, _("Buddy Comment"), tmp2); + g_free(tmp2); } } @@ -2218,7 +2220,8 @@ AIM_SENDMEMBLOCK_FLAG_ISREQUEST); return 1; } - /* uncomment this when you're convinced it's right. remember, it's been wrong before. + /* uncomment this when you're convinced it's right. remember, it's been wrong before. */ +#if 0 if (offset > AIM_MAX_FILE_SIZE || len > AIM_MAX_FILE_SIZE) { char *buf; int i = 8; @@ -2244,7 +2247,7 @@ g_free(buf); return 1; } - */ +#endif pos = g_new0(struct pieceofcrap, 1); pos->gc = sess->aux_data;