Package list splix / debian/2.0.0-3 debian / patches / fix_alignment.patch
debian/2.0.0-3

Tree @debian/2.0.0-3 (Download .tar.gz)

fix_alignment.patch @debian/2.0.0-3raw · history · blame

Index: splix-2.0.0/src/qpdl.cpp
===================================================================
--- splix-2.0.0.orig/src/qpdl.cpp	2011-03-11 21:02:13.231934000 +0100
+++ splix-2.0.0/src/qpdl.cpp	2011-03-11 21:02:26.455934000 +0100
@@ -33,7 +33,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();