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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]