qulogic/pidgin

Fix for TALOS-CAN-0119
release-2.x.y
2016-06-03, Andrew Victor
0f94ef13ab37
Parents 5e5e84e8a798
Children bc8fc1061ac2
Fix for TALOS-CAN-0119
--- a/libpurple/protocols/mxit/http.c Sun May 15 05:41:39 2016 -0300
+++ b/libpurple/protocols/mxit/http.c Fri Jun 03 13:01:58 2016 -0500
@@ -97,9 +97,9 @@
{
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 @@
goto done;
}
tmp = g_strndup( ch, tmp - ch );
- bodylen = atoi( tmp );
+ bodylen = strtoul( tmp, NULL, 10 );
g_free( tmp );
tmp = NULL;