| 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 |