# HG changeset patch # User Elliott Sales de Andrade # Date 1299736899 0 # Node ID 40eb10487f8726f44e401838e83c3d707c90ea60 # Parent eeca86db288bac411acf9e98d0e28678742dd3b1 Use strtoul instead of atoi for the size of an SI transfer, which doesn't produce negative numbers. However, since size_t is platform dependent, this probably only fixes things on 64-bit systems until 3.0.0 when we can fix the PurpleXfer structure. Refs #13458. diff -r eeca86db288b -r 40eb10487f87 libpurple/protocols/jabber/si.c --- a/libpurple/protocols/jabber/si.c Thu Mar 10 05:07:48 2011 +0000 +++ b/libpurple/protocols/jabber/si.c Thu Mar 10 06:01:39 2011 +0000 @@ -1699,7 +1699,7 @@ return; if((filesize_c = xmlnode_get_attrib(file, "size"))) - filesize = atoi(filesize_c); + filesize = strtoul(filesize_c, NULL, 10); if(!(feature = xmlnode_get_child(si, "feature"))) return;