libpurple/protocols/msn/msnutils.c

branch
release-2.x.y
changeset 35977
9b7b48f446f4
parent 32091
5061380d9fee
child 35989
2b5a26ddbb69
child 35998
aeaebd2ba4af
--- 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>");

mercurial