commit 8a9e001c56b7bf4bed10487942a03fa9e6211b1f
Author: Christophe Fergeau <cferg...@mandriva.com>
Date:   Fri Aug 27 21:41:17 2010 +0200

    fix endianness issue in iTunesCDB reading

 src/itdb_zlib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/itdb_zlib.c b/src/itdb_zlib.c
index ead9d3b..f6fa29b 100644
--- a/src/itdb_zlib.c
+++ b/src/itdb_zlib.c
@@ -112,8 +112,8 @@ gboolean itdb_zlib_check_decompress_fimp (FImport *fimp)
 
     cts = fimp->fcontents;
 
-    cSize = *(guint32*)(cts->contents+8);
-    headerSize = *(guint32*)(cts->contents+4);
+    cSize = GUINT32_FROM_LE (*(guint32*)(cts->contents+8));
+    headerSize = GUINT32_FROM_LE (*(guint32*)(cts->contents+4));
     uSize = 0;
 
     if (headerSize < 0xA9) {

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to