--- a/libpurple/protocols/msn/msnutils.c Tue May 06 12:25:44 2014 +0200 +++ b/libpurple/protocols/msn/msnutils.c Tue May 06 12:43:32 2014 +0200 @@ -124,8 +124,9 @@ } g_snprintf(tag, sizeof(tag), - "<FONT COLOR=\"#%02hhx%02hhx%02hhx\">", - colors[0], colors[1], colors[2]); + "<FONT COLOR=\"#%02x%02x%02x\">", + colors[0] & 0xFF, colors[1] & 0xFF, + colors[2] & 0xFF); pre = g_string_append(pre, tag); post = g_string_prepend(post, "</FONT>");