comparison libpurple/protocols/bonjour/parser.c @ 20844:6668c0cd4687

I think this is the correct fix for CID 319 and 321. I added a note about two other cases where it appears that the xmlns isn't being compared correctly, but I'm afraid that fixing them will cause behavior change.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 09 Oct 2007 19:28:48 +0000
parents 3e4c4a33ea35
children 5b9da9db7e81
comparison
equal deleted inserted replaced
20843:a2b2fc59b571 20844:6668c0cd4687
62 int attrib_len = attributes[i+4] - attributes[i+3]; 62 int attrib_len = attributes[i+4] - attributes[i+3];
63 char *attrib = g_malloc(attrib_len + 1); 63 char *attrib = g_malloc(attrib_len + 1);
64 char *attrib_ns = NULL; 64 char *attrib_ns = NULL;
65 65
66 if (attributes[i+2]) { 66 if (attributes[i+2]) {
67 attrib_ns = g_strdup((char*)attributes[i+2]);; 67 attrib_ns = g_strdup((char*)attributes[i+2]);
68 } 68 }
69 69
70 memcpy(attrib, attributes[i+3], attrib_len); 70 memcpy(attrib, attributes[i+3], attrib_len);
71 attrib[attrib_len] = '\0'; 71 attrib[attrib_len] = '\0';
72 72