[Spice-devel] [PATCH 4/7] spice-ppc: fix glz magic endianess
Erlon Cruz
erlon.cruz at br.flextronics.com
Tue Aug 7 11:39:15 PDT 2012
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>
---
server/glz_encoder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/glz_encoder.c b/server/glz_encoder.c
index 1ec1f9b..f8415a8 100644
--- a/server/glz_encoder.c
+++ b/server/glz_encoder.c
@@ -261,7 +261,7 @@ int glz_encode(GlzEncoderContext *opaque_encoder,
encoder->cur_image.id = dict_image->id;
encoder->cur_image.first_win_seg = dict_image->first_seg;
- encode_32(encoder, LZ_MAGIC);
+ encode_32(encoder, htole32(LZ_MAGIC));
encode_32(encoder, LZ_VERSION);
if (top_down) {
encode(encoder, (type & LZ_IMAGE_TYPE_MASK) | (1 << LZ_IMAGE_TYPE_LOG));
--
1.7.4.1
More information about the Spice-devel
mailing list