Mercurial > pidgin.yaz
changeset 9638:201c8fe4cee3
[gaim-migrate @ 10486]
This should fix the bogus bogus profile messages
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Mon, 02 Aug 2004 02:09:35 +0000 |
parents | 6c44a5d7cf54 |
children | 58625ebfe03a |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Aug 02 01:52:23 2004 +0000 +++ b/src/protocols/oscar/oscar.c Mon Aug 02 02:09:35 2004 +0000 @@ -394,7 +394,8 @@ * just copy it. */ if (utf8 == NULL) { - if (!g_utf8_validate(text, textlen, NULL)) + if (textlen != 0 && *text != '\0' + && !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_strndup(text, textlen);