diff src/protocols/msn/slp.c @ 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 f5f7482678d2
children 7a8aa87164ae
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);