libpurple/protocols/mxit/markup.c

changeset 36257
c5445f25f90f
parent 36182
93a7252bf87c
parent 36255
a3fe30a2666b
child 37158
96b5ab42da00
--- a/libpurple/protocols/mxit/markup.c	Wed Nov 12 03:59:11 2014 -0500
+++ b/libpurple/protocols/mxit/markup.c	Thu Nov 13 01:06:59 2014 -0500
@@ -593,7 +593,7 @@
 	purple_debug_info( MXIT_PLUGIN_ID, "read the length '%i'\n", em_size );
 #endif
 
-	if ( len - pos < em_size ) {
+	if ( len - pos < (gsize)em_size ) {
 		/* not enough bytes left in data! */
 		purple_debug_error( MXIT_PLUGIN_ID, "Invalid emoticon received from wapsite (data length too long)\n");
 		g_free( em_id );

mercurial