File dx-4.4.4-array-overflow.patch of Package dx

--- src/exec/dxmods/genimp_io.c
+++ src/exec/dxmods/genimp_io.c
@@ -1624,7 +1624,7 @@
       if (_dxd_gi_header.type==SKIP_MARKER && 
 	  strstr(str,_dxd_gi_header.marker)){
 	 if (sets_read == num_sets && 
-	      _dxd_gi_header.marker[strlen(_dxd_gi_header.marker-1)]=='\n')
+	      _dxd_gi_header.marker[strlen(_dxd_gi_header.marker)-1]=='\n')
 	    _dxd_gi_header.type = SKIP_NOTHING;
 	 else
 	    *read_header=1;
--- src/exec/libdx/lbcamera.c
+++ src/exec/libdx/lbcamera.c
@@ -28,9 +28,9 @@
 {
     Matrix t;
 
-    t.A[0][0] = p[ 0]; t.A[0][1] = p[ 1]; t.A[0][3] = p[ 2];
-    t.A[1][0] = p[ 4]; t.A[1][1] = p[ 5]; t.A[1][3] = p[ 6];
-    t.A[2][0] = p[ 8]; t.A[2][1] = p[ 9]; t.A[2][3] = p[10];
+    t.A[0][0] = p[ 0]; t.A[0][1] = p[ 1]; t.A[0][2] = p[ 2];
+    t.A[1][0] = p[ 4]; t.A[1][1] = p[ 5]; t.A[1][2] = p[ 6];
+    t.A[2][0] = p[ 8]; t.A[2][1] = p[ 9]; t.A[2][2] = p[10];
     t.b[0]    = p[12]; t.b[1]    = p[13]; t.b[2]    = p[14];
 
     c->m = c->rot = t;