/pidgin/main: 0f94ef13ab37: Fix for TALOS-CAN-0119
Andrew Victor <[email protected]> Mon, 20 Jun 2016 20:09:58 -0400
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: 0f94ef13ab373f4da4a723377d792a296145efdb Author: Andrew Victor <[email protected]> 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; _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits