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