| 478 pos += get_utf8_string( &chunkdata[pos], offer->filename, sizeof( offer->filename ) ); |
478 pos += get_utf8_string( &chunkdata[pos], offer->filename, sizeof( offer->filename ) ); |
| 479 |
479 |
| 480 /* mime type [UTF-8] */ |
480 /* mime type [UTF-8] */ |
| 481 pos += get_utf8_string( &chunkdata[pos], offer->mimetype, sizeof( offer->mimetype ) ); |
481 pos += get_utf8_string( &chunkdata[pos], offer->mimetype, sizeof( offer->mimetype ) ); |
| 482 |
482 |
| |
483 if (pos > datalen) |
| |
484 purple_debug_warning(MXIT_PLUGIN_ID, "pos > datalen"); |
| |
485 |
| 483 /* timestamp [8 bytes] */ |
486 /* timestamp [8 bytes] */ |
| 484 /* not used by libPurple */ |
487 /* not used by libPurple */ |
| 485 |
488 |
| 486 /* file description [UTF-8] */ |
489 /* file description [UTF-8] */ |
| 487 /* not used by libPurple */ |
490 /* not used by libPurple */ |
| 641 /* status [4 bytes] */ |
644 /* status [4 bytes] */ |
| 642 pos += get_int32( &chunkdata[pos], &(sendfile->status) ); |
645 pos += get_int32( &chunkdata[pos], &(sendfile->status) ); |
| 643 |
646 |
| 644 /* status message [UTF-8 string] */ |
647 /* status message [UTF-8 string] */ |
| 645 pos += get_utf8_string( &chunkdata[pos], sendfile->statusmsg, sizeof( sendfile->statusmsg ) ); |
648 pos += get_utf8_string( &chunkdata[pos], sendfile->statusmsg, sizeof( sendfile->statusmsg ) ); |
| |
649 |
| |
650 if (pos != datalen) |
| |
651 purple_debug_misc(MXIT_PLUGIN_ID, "pos != datalen"); |
| 646 } |
652 } |
| 647 |
653 |
| 648 |
654 |
| 649 /*------------------------------------------------------------------------ |
655 /*------------------------------------------------------------------------ |
| 650 * Parse a received "get avatar" response chunk. (Chunk 14) |
656 * Parse a received "get avatar" response chunk. (Chunk 14) |