libpurple/protocols/jabber/parser.c

changeset 20922
fe5f9d337020
parent 19897
8b5abbdebc87
child 21160
821c74a55abc
equal deleted inserted replaced
20921:6b998cf630e2 20922:fe5f9d337020
78 int attrib_len = attributes[i+4] - attributes[i+3]; 78 int attrib_len = attributes[i+4] - attributes[i+3];
79 char *attrib = g_malloc(attrib_len + 1); 79 char *attrib = g_malloc(attrib_len + 1);
80 char *attrib_ns = NULL; 80 char *attrib_ns = NULL;
81 81
82 if (attributes[i+2]) { 82 if (attributes[i+2]) {
83 attrib_ns = g_strdup((char*)attributes[i+2]);; 83 attrib_ns = g_strdup((char*)attributes[i+2]);
84 } 84 }
85 85
86 memcpy(attrib, attributes[i+3], attrib_len); 86 memcpy(attrib, attributes[i+3], attrib_len);
87 attrib[attrib_len] = '\0'; 87 attrib[attrib_len] = '\0';
88 88

mercurial