changeset 4159:3f267c74e50a

[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. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 31 Dec 2002 05:24:17 +0000
parents a638bc9454a6
children fcc6db86f5c7
files src/protocols/oscar/msgcookie.c src/protocols/oscar/oscar.c
diffstat 2 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);