# HG changeset patch # User John Bailey # Date 1200716264 0 # Node ID a886e43210b13d8c6711aeb0dbea24634bd37a23 # Parent f577201bf30f60fbb5e60ce1547b7146b5a67744 Fix (hopefully) the last problem in this function. Refs #3295. diff -r f577201bf30f -r a886e43210b1 libpurple/protocols/yahoo/util.c --- a/libpurple/protocols/yahoo/util.c Sat Jan 19 00:54:44 2008 +0000 +++ b/libpurple/protocols/yahoo/util.c Sat Jan 19 04:17:44 2008 +0000 @@ -168,11 +168,11 @@ { GString *gstr = NULL; char *retstr; - const char *p; + const unsigned char *p; gstr = g_string_sized_new(strlen(str) * 6 + 1); - for (p = str; *p; p++) { + for (p = (unsigned char *)str; *p; p++) { g_string_append_printf(gstr, "&#%u;", *p); }