[Spice-devel] [spice-gtk][PATCH 1/4] ppc: Fix glz magic endianess

Fabiano FidĂȘncio fidencio at redhat.com
Mon May 18 06:11:05 PDT 2015


---
 gtk/decode-glz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/decode-glz.c b/gtk/decode-glz.c
index 34a7185..f536d31 100644
--- a/gtk/decode-glz.c
+++ b/gtk/decode-glz.c
@@ -344,7 +344,7 @@ static void decode_header(GlibGlzDecoder *d)
     uint32_t stride;
     uint8_t tmp;
 
-    magic = decode_32(d);
+    magic = GUINT32_FROM_LE(decode_32(d));
     g_return_if_fail(magic == LZ_MAGIC);
 
     version = decode_32(d);
-- 
2.4.0



More information about the Spice-devel mailing list