libpurple/protocols/yahoo/yahoo_packet.c

changeset 34304
faf0414a8b51
parent 32157
39ba2e2492ee
child 34889
4ea2da14cd0e
equal deleted inserted replaced
34302:3949b825f4bf 34304:faf0414a8b51
137 { 137 {
138 int pos = 0; 138 int pos = 0;
139 char key[64]; 139 char key[64];
140 const guchar *delimiter; 140 const guchar *delimiter;
141 gboolean accept; 141 gboolean accept;
142 int x; 142 guint x;
143 struct yahoo_pair *pair; 143 struct yahoo_pair *pair;
144 144
145 while (pos + 1 < len) 145 while (pos + 1 < len)
146 { 146 {
147 if (data[pos] == '\0') 147 if (data[pos] == '\0')
368 " of %" G_GSIZE_FORMAT " bytes!\n", ret, len); 368 " of %" G_GSIZE_FORMAT " bytes!\n", ret, len);
369 g_free(data); 369 g_free(data);
370 return ret; 370 return ret;
371 } 371 }
372 372
373 if (ret < len) { 373 if ((gsize)ret < len) {
374 if (yd->txhandler == 0) 374 if (yd->txhandler == 0)
375 yd->txhandler = purple_input_add(yd->fd, PURPLE_INPUT_WRITE, 375 yd->txhandler = purple_input_add(yd->fd, PURPLE_INPUT_WRITE,
376 yahoo_packet_send_can_write, yd); 376 yahoo_packet_send_can_write, yd);
377 purple_circ_buffer_append(yd->txbuf, data + ret, len - ret); 377 purple_circ_buffer_append(yd->txbuf, data + ret, len - ret);
378 } 378 }

mercurial