libpurple/protocols/yahoo/yahoo_packet.c

changeset 27716
a3ed37ab91b8
parent 27555
afb7cb5c350c
child 27959
f842ae57da4e
equal deleted inserted replaced
27713:9985f2f358c9 27716:a3ed37ab91b8
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 if (purple_debug_is_verbose()) { 190 if (purple_debug_is_verbose() || g_getenv("PURPLE_YAHOO_DEBUG")) {
191 char *esc; 191 char *esc;
192 esc = g_strescape(pair->value, NULL); 192 esc = g_strescape(pair->value, NULL);
193 purple_debug_misc("yahoo", "Key: %d \tValue: %s\n", pair->key, esc); 193 purple_debug_misc("yahoo", "Key: %d \tValue: %s\n", pair->key, esc);
194 g_free(esc); 194 g_free(esc);
195 } 195 }

mercurial