# HG changeset patch # User Christian Hammond # Date 1086913116 0 # Node ID 70153c75901631ad346878fa31296e6ece8dea52 # Parent 572e4658492c53c5d7ad29202f3920ea2b2cafc1 [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 diff -r 572e4658492c -r 70153c759016 src/protocols/msn/slp.c --- 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);