splix (2.0.0+svn306-2) 0001-Fix-alignment-problem-on-armel.patch

Summary

 src/qpdl.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

From: Luca Niccoli <lultimouomo@gmail.com>
Date: Sun, 12 Jun 2011 15:30:15 +0200
Subject: Fix alignment problem on armel

---
 src/qpdl.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Index: splix-2.0.0+svn299/src/qpdl.cpp
===================================================================
--- splix-2.0.0+svn299.orig/src/qpdl.cpp	2011-07-20 18:20:18.782096000 +0200
+++ splix-2.0.0+svn299/src/qpdl.cpp	2011-11-12 12:33:29.755649967 +0100
@@ -132,7 +132,7 @@
 {
     unsigned long version, subVersion, size, dataSize, checkSum;
     bool color, headerSent=false;
-    unsigned char header[0x20];
+    unsigned char header[0x20] __attribute__((aligned(4)));
     const BandPlane *plane;
 
     version = request.printer()->qpdlVersion();