/pidgin/main: 0f94ef13ab37: Fix for TALOS-CAN-0119

Andrew Victor andrew.victor at mxit.com
Mon Jun 20 20:09:58 EDT 2016


Changeset: 0f94ef13ab373f4da4a723377d792a296145efdb
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2016-06-03 13:01 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/0f94ef13ab37

Description:

Fix for TALOS-CAN-0119

diffstat:

 libpurple/protocols/mxit/http.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff --git a/libpurple/protocols/mxit/http.c b/libpurple/protocols/mxit/http.c
--- a/libpurple/protocols/mxit/http.c
+++ b/libpurple/protocols/mxit/http.c
@@ -97,9 +97,9 @@ static void mxit_cb_http_read( gpointer 
 {
 	struct MXitSession*	session		= (struct MXitSession*) user_data;
 	char				buf[256];
-	int					buflen;
+	unsigned int		buflen;
 	char*				body;
-	int					bodylen;
+	unsigned int		bodylen;
 	char*				ch;
 	int					len;
 	char*				tmp;
@@ -182,7 +182,7 @@ nextpacket:
 			goto done;
 		}
 		tmp = g_strndup( ch, tmp - ch );
-		bodylen = atoi( tmp );
+		bodylen = strtoul( tmp, NULL, 10 );
 		g_free( tmp );
 		tmp = NULL;
 



More information about the Commits mailing list