Patch from Gal Topper to fix an endianness issue in MSN file transfers. Fixes #2912 and fixes #1682

Mon, 03 Sep 2007 01:07:31 +0000

author
Sean Egan <seanegan@pidgin.im>
date
Mon, 03 Sep 2007 01:07:31 +0000
changeset 19747
a0b0869fab7c
parent 19745
10d0834255f9
child 19763
e1b781b27595
child 20592
a4a7b830471a

Patch from Gal Topper to fix an endianness issue in MSN file transfers. Fixes #2912 and fixes #1682

COPYRIGHT file | annotate | diff | comparison | revisions
libpurple/protocols/msn/slp.c file | annotate | diff | comparison | revisions
--- 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) {

mercurial