Update of /cvsroot/gaim/gaim/src/protocols/msn
In directory usw-pr-cvs1:/tmp/cvs-serv20937/src/protocols/msn
Modified Files:
msn.c
Log Message:
A patch by Etan. A patch by Ben.
Index: msn.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/msn/msn.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- msn.c 17 Jun 2002 02:47:49 -0000 1.87
+++ msn.c 5 Aug 2002 07:44:11 -0000 1.88
@@ -587,7 +587,9 @@
{
char *cur;
GString *ret = g_string_new(NULL);
- char colors[3];
+ guint colorbuf;
+ char *colors = (char *)(&colorbuf);
+
cur = strstr(mime, "FN=");
if (cur && (*(cur = cur + 3) != ';')) {
@@ -611,7 +613,7 @@
cur = strstr(mime, "CO=");
if (cur && (*(cur = cur + 3) != ';')) {
- if (sscanf (cur, "%x;", (int*)(&colors)) == 1) {
+ if (sscanf (cur, "%x;", &colorbuf) == 1) {
char tag[MSN_BUF_LEN];
g_snprintf(tag, sizeof(tag), "<FONT COLOR=\"#%02hhx%02hhx%02hhx\">", colors[0], colors[1], colors[2]);
ret = g_string_append(ret, tag);
|