libpurple/protocols/mxit/chunk.c

branch
soc.2013.gobjectification.plugins
changeset 36858
920cf8db7c68
parent 36542
30f40ecc4631
parent 34457
a9d3726c3a8f
child 37131
fe9ff76f1c6c
equal deleted inserted replaced
36857:79d57b15c8cc 36858:920cf8db7c68
380 * @param datalen The size of the avatar data 380 * @param datalen The size of the avatar data
381 * @return The number of bytes encoded in the buffer 381 * @return The number of bytes encoded in the buffer
382 */ 382 */
383 int mxit_chunk_create_set_avatar( char* chunkdata, const unsigned char* data, int datalen ) 383 int mxit_chunk_create_set_avatar( char* chunkdata, const unsigned char* data, int datalen )
384 { 384 {
385 const char fileid[MXIT_CHUNK_FILEID_LEN]; 385 char fileid[MXIT_CHUNK_FILEID_LEN];
386 int pos = 0; 386 int pos = 0;
387 387
388 /* id [8 bytes] */ 388 /* id [8 bytes] */
389 memset( &fileid, 0, sizeof( fileid ) ); /* set to 0 for file upload */ 389 memset( &fileid, 0, sizeof( fileid ) ); /* set to 0 for file upload */
390 pos += add_data( &chunkdata[pos], fileid, MXIT_CHUNK_FILEID_LEN ); 390 pos += add_data( &chunkdata[pos], fileid, MXIT_CHUNK_FILEID_LEN );

mercurial