src/protocols/yahoo/yahoo_packet.c

changeset 13829
ac73840b2117
parent 13277
c8a85dd74704
child 14095
125eacb85b5f
equal deleted inserted replaced
13828:06d635b64c67 13829:ac73840b2117
114 int accept; 114 int accept;
115 int x; 115 int x;
116 116
117 struct yahoo_pair *pair = g_new0(struct yahoo_pair, 1); 117 struct yahoo_pair *pair = g_new0(struct yahoo_pair, 1);
118 118
119 /* this is weird, and in one of the chat packets, and causes us 119 /* this is weird, and in one of the chat packets, and causes us to
120 * think all the values are keys and all the keys are values after 120 * think all the values are keys and all the keys are values after
121 * this point if we don't handle it */ 121 * this point if we don't handle it */
122 if (data[pos] == '\0') { 122 if (data[pos] == '\0') {
123 while (pos + 1 < len) { 123 while (pos + 1 < len) {
124 if (data[pos] == 0xc0 && data[pos + 1] == 0x80) 124 if (data[pos] == 0xc0 && data[pos + 1] == 0x80)

mercurial