Mercurial > pidgin.yaz
changeset 31770:40eb10487f87
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.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 10 Mar 2011 06:01:39 +0000 |
parents | eeca86db288b |
children | b8e076d51817 |
files | libpurple/protocols/jabber/si.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;