Mercurial > pidgin
changeset 9263:70153c759016
[gaim-migrate @ 10062]
Patch by Andrew Wellington that fixes an endianness issue for MSN file
transfer on big endian machines. The file sizes were being interpreted
incorrectly.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 11 Jun 2004 00:18:36 +0000 |
parents | 572e4658492c |
children | cea7eba5f494 |
files | src/protocols/msn/slp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/slp.c Fri Jun 11 00:16:36 2004 +0000 +++ b/src/protocols/msn/slp.c Fri Jun 11 00:18:36 2004 +0000 @@ -319,7 +319,7 @@ slpcall->slplink->remote_user); gaim_base64_decode(context, &bin, &bin_len); - file_size = *((gsize *)bin + 2); + file_size = GUINT32_FROM_LE(*((gsize *)bin + 2)); file_name = g_utf16_to_utf8((const gunichar2 *)(bin + 20), -1, NULL, NULL, NULL);