[Spice-devel] [PATCH 2/3] spice-ppc: fix lz magic endianness
sombrafam at gmail.com
sombrafam at gmail.com
Tue Aug 7 11:45:31 PDT 2012
From: Erlon Cruz <erlon.cruz at br.flextronics.com>
Signed-off-by: Erlon R. Cruz <erlon.cruz at br.flextronics.com>
Signed-off-by: Fabiano Fidêncio <Fabiano.Fidêncio at fit-tecnologia.org.br>
Signed-off-by: Rafael F. Santos <Rafael.Santos at fit-tecnologia.org.br>
---
common/lz.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/lz.c b/common/lz.c
index 568aae7..f022a26 100644
--- a/common/lz.c
+++ b/common/lz.c
@@ -528,7 +528,7 @@ int lz_encode(LzContext *lz, LzImageType type, int width, int height, int top_do
encoder->usr->error(encoder->usr, "lz encoder reading image segments failed\n");
}
- encode_32(encoder, LZ_MAGIC);
+ encode_32(encoder, htole32(LZ_MAGIC));
encode_32(encoder, LZ_VERSION);
encode_32(encoder, type);
encode_32(encoder, width);
--
1.7.4.1
More information about the Spice-devel
mailing list