Mercurial > pidgin.yaz
changeset 19591:1b95e3bd5628
Patch from Gal Topper to fix an endianness issue in MSN file transfers. Fixes #2912 and fixes #1682
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 03 Sep 2007 01:07:31 +0000 |
parents | d24b19e3db5a |
children | 8b887be774e2 642f08c49042 |
files | COPYRIGHT libpurple/protocols/msn/slp.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Sun Sep 02 23:35:53 2007 +0000 +++ b/COPYRIGHT Mon Sep 03 01:07:31 2007 +0000 @@ -376,6 +376,7 @@ Warren Togami Stu Tomlinson Bill Tompkins +Gal Topper Chris Toshok Ken Tossell Tom Tromey
--- a/libpurple/protocols/msn/slp.c Sun Sep 02 23:35:53 2007 +0000 +++ b/libpurple/protocols/msn/slp.c Mon Sep 03 01:07:31 2007 +0000 @@ -343,7 +343,7 @@ if (xfer) { bin = (char *)purple_base64_decode(context, &bin_len); - file_size = GUINT32_FROM_LE(*((gsize *)bin + 2)); + file_size = GUINT32_FROM_LE(*(gsize *)(bin + 2)); uni_name = (gunichar2 *)(bin + 20); while(*uni_name != 0 && ((char *)uni_name - (bin + 20)) < MAX_FILE_NAME_LEN) {