| 404 for(i=0; i < nb_attributes * 5; i+=5) { |
405 for(i=0; i < nb_attributes * 5; i+=5) { |
| 405 int attrib_len = attributes[i+4] - attributes[i+3]; |
406 int attrib_len = attributes[i+4] - attributes[i+3]; |
| 406 char *attrib = g_malloc(attrib_len + 1); |
407 char *attrib = g_malloc(attrib_len + 1); |
| 407 memcpy(attrib, attributes[i+3], attrib_len); |
408 memcpy(attrib, attributes[i+3], attrib_len); |
| 408 attrib[attrib_len] = '\0'; |
409 attrib[attrib_len] = '\0'; |
| |
410 #ifdef HAVE_LIBXML |
| |
411 char *txt = attrib; |
| |
412 attrib = gaim_unescape_html(txt); |
| |
413 g_free(txt); |
| |
414 #endif |
| 409 xmlnode_set_attrib(node, attributes[i], attrib); |
415 xmlnode_set_attrib(node, attributes[i], attrib); |
| 410 g_free(attrib); |
416 g_free(attrib); |
| 411 } |
417 } |
| 412 |
418 |
| 413 xpd->current = node; |
419 xpd->current = node; |