libpurple/protocols/mxit/chunk.c

branch
mxit
changeset 31496
32788a58721b
parent 31294
73607ab89c6f
parent 30788
da428f8d1f97
child 31722
9e4e8315893d
--- a/libpurple/protocols/mxit/chunk.c	Mon Jan 10 11:57:34 2011 +0000
+++ b/libpurple/protocols/mxit/chunk.c	Thu Jan 13 07:21:13 2011 +0000
@@ -406,10 +406,9 @@
  *  @param chunkdata		Chunked-data buffer
  *  @param mxitId			The username who's avatar to download
  *  @param avatarId			The Id of the avatar image (as string)
- *  @param imgsize			The resolution of the avatar image
  *  @return					The number of bytes encoded in the buffer
  */
-int mxit_chunk_create_get_avatar( char* chunkdata, const char* mxitId, const char* avatarId, unsigned int imgsize )
+int mxit_chunk_create_get_avatar( char* chunkdata, const char* mxitId, const char* avatarId )
 {
 	int			pos = 0;
 
@@ -432,7 +431,7 @@
 	pos += add_int16( &chunkdata[pos], 1 );
 
 	/* image size [4 bytes] */
-	pos += add_int32( &chunkdata[pos], imgsize );
+	pos += add_int32( &chunkdata[pos], MXIT_AVATAR_SIZE );
 
 	return pos;
 }

mercurial