# HG changeset patch # User Sean Egan # Date 1188781651 0 # Node ID 1b95e3bd56283043f4741dfe78059bc4194aa66c # Parent d24b19e3db5ab1cb1497b65a2014795558b37c38 Patch from Gal Topper to fix an endianness issue in MSN file transfers. Fixes #2912 and fixes #1682 diff -r d24b19e3db5a -r 1b95e3bd5628 COPYRIGHT --- 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 diff -r d24b19e3db5a -r 1b95e3bd5628 libpurple/protocols/msn/slp.c --- 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) {