comparison libpurple/xmlnode.c @ 21318:9bbb0950fa73

Explicitly cast from xmlChar (== unsigned char) to char, squishing a warning.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 11 Nov 2007 14:12:51 +0000
parents 78f3361f5e62
children 372711300f57
comparison
equal deleted inserted replaced
21317:84925e6055bc 21318:9bbb0950fa73
588 g_strdup(key ? key : ""), g_strdup(val ? val : "")); 588 g_strdup(key ? key : ""), g_strdup(val ? val : ""));
589 } 589 }
590 } 590 }
591 591
592 for(i=0; i < nb_attributes * 5; i+=5) { 592 for(i=0; i < nb_attributes * 5; i+=5) {
593 const char *prefix = attributes[i + 1]; 593 const char *prefix = (const char *)attributes[i + 1];
594 char *txt; 594 char *txt;
595 int attrib_len = attributes[i+4] - attributes[i+3]; 595 int attrib_len = attributes[i+4] - attributes[i+3];
596 char *attrib = g_malloc(attrib_len + 1); 596 char *attrib = g_malloc(attrib_len + 1);
597 memcpy(attrib, attributes[i+3], attrib_len); 597 memcpy(attrib, attributes[i+3], attrib_len);
598 attrib[attrib_len] = '\0'; 598 attrib[attrib_len] = '\0';