[Spice-devel] [PATCH v2 4/6] ppc: Fix glz magic endianess
Christophe Fergeau
cfergeau at redhat.com
Tue Feb 10 01:15:02 PST 2015
This is a modified version of a patch initially by Erlon R. Cruz
<erlon.cruz at br.flextronics.com>
---
server/glz_encoder.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/glz_encoder.c b/server/glz_encoder.c
index 1ec1f9b..5e1a694 100644
--- a/server/glz_encoder.c
+++ b/server/glz_encoder.c
@@ -18,6 +18,7 @@
#include <config.h>
#endif
+#include <glib.h>
#include <pthread.h>
#include <stdio.h>
#include "glz_encoder.h"
@@ -261,7 +262,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, GUINT32_TO_LE(LZ_MAGIC));
encode_32(encoder, LZ_VERSION);
if (top_down) {
encode(encoder, (type & LZ_IMAGE_TYPE_MASK) | (1 << LZ_IMAGE_TYPE_LOG));
--
2.1.0
More information about the Spice-devel
mailing list