--- 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 );