[Spice-devel] [PATCH v2 2/3] spice-ppc: spice-common: fix lz magic endianness
Erlon Cruz
erlon.cruz at br.flextronics.com
Mon Aug 13 07:15:15 PDT 2012
Signed-off-by: Erlon R. Cruz <erlon.cruz at br.flextronics.com>
Signed-off-by: Rafael F. Santos <fonsecasantos.rafael at gmail.com>
Signed-off-by: Fabiano Fidêncio <Fabiano.Fidêncio 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