Tue, 31 Dec 2002 05:24:17 +0000
[gaim-migrate @ 4387]
A few days ago I added a feature that sometimes put cool little
random characters after people's aim info or away messages.
Unfortunately, the world just isn't ready for this feature,
so I feel obligated to remove it. I'm sorry. He would have
wanted it this way.
| src/protocols/oscar/msgcookie.c | file | annotate | diff | comparison | revisions | |
| src/protocols/oscar/oscar.c | file | annotate | diff | comparison | revisions |
--- a/src/protocols/oscar/msgcookie.c Tue Dec 31 05:23:12 2002 +0000 +++ b/src/protocols/oscar/msgcookie.c Tue Dec 31 05:24:17 2002 +0000 @@ -131,15 +131,14 @@ } #if 0 /* debugging feature */ -faim_internal int aim_dumpcookie(aim_msgcookie_t *cookie) +faim_internal int aim_dumpcookie(aim_session_t *sess, aim_msgcookie_t *cookie) { if (!cookie) return -EINVAL; - printf("\tCookie at %p: %d/%s with %p, next %p\n", - cookie, cookie->type, cookie->cookie, - cookie->data, cookie->next); + faimdprintf(sess, 0, "\tCookie at %p: %d/%s with %p, next %p\n", cookie, + cookie->type, cookie->cookie, cookie->data, cookie->next); return 0; }
--- a/src/protocols/oscar/oscar.c Tue Dec 31 05:23:12 2002 +0000 +++ b/src/protocols/oscar/oscar.c Tue Dec 31 05:24:17 2002 +0000 @@ -2644,7 +2644,7 @@ flags = parse_encoding (text_enc); switch (flags) { case 0: - utf8 = g_strdup(text); + utf8 = g_strndup(text, text_len); break; case AIM_IMFLAGS_UNICODE: utf8 = g_convert(text, text_len, "UTF-8", "UCS-2BE", NULL, NULL, NULL);