# HG changeset patch # User Ethan Blanton # Date 1089253238 0 # Node ID 683660b4efebec29178e96de6394384286221b47 # Parent 91856b52a391d1d54d2953909c128734460db571 [gaim-migrate @ 10306] Hmmm, this length is important committer: Tailor Script diff -r 91856b52a391 -r 683660b4efeb src/protocols/oscar/oscar.c --- 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);