libpurple/protocols/yahoo/yahoo_packet.c

changeset 27546
2d51a155a3fc
parent 27335
06a805d4e690
child 27547
c136491361eb
equal deleted inserted replaced
27545:61b1e577497c 27546:2d51a155a3fc
185 x = delimiter - data; 185 x = delimiter - data;
186 pair->value = g_strndup((const gchar *)&data[pos], x - pos); 186 pair->value = g_strndup((const gchar *)&data[pos], x - pos);
187 pos = x; 187 pos = x;
188 pkt->hash = g_slist_prepend(pkt->hash, pair); 188 pkt->hash = g_slist_prepend(pkt->hash, pair);
189 189
190 #ifdef DEBUG 190 if (purple_debug_is_verbose()) {
191 {
192 char *esc; 191 char *esc;
193 esc = g_strescape(pair->value, NULL); 192 esc = g_strescape(pair->value, NULL);
194 purple_debug(PURPLE_DEBUG_MISC, "yahoo", 193 purple_debug(PURPLE_DEBUG_MISC, "yahoo",
195 "Key: %d \tValue: %s\n", pair->key, esc); 194 "Key: %d \tValue: %s\n", pair->key, esc);
196 g_free(esc); 195 g_free(esc);
197 } 196 }
198 #endif /* DEBUG */
199 } else { 197 } else {
200 g_free(pair); 198 g_free(pair);
201 } 199 }
202 pos += 2; 200 pos += 2;
203 201

mercurial