[sword-svn] r3095 - trunk/src/modules/common

chrislit at crosswire.org chrislit at crosswire.org
Tue Mar 11 02:39:49 MST 2014


Author: chrislit
Date: 2014-03-11 02:39:49 -0700 (Tue, 11 Mar 2014)
New Revision: 3095

Modified:
   trunk/src/modules/common/bz2comprs.cpp
   trunk/src/modules/common/xzcomprs.cpp
   trunk/src/modules/common/zipcomprs.cpp
Log:
direction is supposed to be needed


Modified: trunk/src/modules/common/bz2comprs.cpp
===================================================================
--- trunk/src/modules/common/bz2comprs.cpp	2014-03-11 07:11:44 UTC (rev 3094)
+++ trunk/src/modules/common/bz2comprs.cpp	2014-03-11 09:39:49 UTC (rev 3095)
@@ -109,6 +109,8 @@
 
 void Bzip2Compress::Decode(void)
 {
+	direct = 1;	// set direction needed by parent [Get|Send]Chars()
+
 	// get buffer
 	char chunk[1024];
 	char *zbuf = (char *)calloc(1, 1024);

Modified: trunk/src/modules/common/xzcomprs.cpp
===================================================================
--- trunk/src/modules/common/xzcomprs.cpp	2014-03-11 07:11:44 UTC (rev 3094)
+++ trunk/src/modules/common/xzcomprs.cpp	2014-03-11 09:39:49 UTC (rev 3095)
@@ -132,6 +132,8 @@
 
 void XzCompress::Decode(void)
 {
+	direct = 1;	// set direction needed by parent [Get|Send]Chars()
+
 	// get buffer
 	char chunk[1024];
 	char *zbuf = (char *)calloc(1, 1024);

Modified: trunk/src/modules/common/zipcomprs.cpp
===================================================================
--- trunk/src/modules/common/zipcomprs.cpp	2014-03-11 07:11:44 UTC (rev 3094)
+++ trunk/src/modules/common/zipcomprs.cpp	2014-03-11 09:39:49 UTC (rev 3095)
@@ -142,6 +142,7 @@
    enough memory, Z_BUF_ERROR if there was not enough room in the output
    buffer, or Z_DATA_ERROR if the input data was corrupted.
 */
+	direct = 1;	// set direction needed by parent [Get|Send]Chars()
 
 	// get buffer
 	char chunk[1024];




More information about the sword-cvs mailing list