changeset 9481:683660b4efeb

[gaim-migrate @ 10306] Hmmm, this length is important committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 08 Jul 2004 02:20:38 +0000
parents 91856b52a391
children b917acdc982f
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Jul 08 01:24:48 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Jul 08 02:20:38 2004 +0000
@@ -402,7 +402,7 @@
 		if (!g_utf8_validate(text, textlen, NULL))
 			utf8 = g_strdup(_("(There was an error converting this message.  The buddy you are speaking to most likely has a buggy client.)"));
 		else
-			utf8 = g_strdup(text);
+			utf8 = g_strndup(text, textlen);
 		break;
 	case AIM_IMFLAGS_ISO_8859_1:
 		utf8 = g_convert(text, textlen, "UTF-8", "ISO-8859-1", NULL, NULL, NULL);