[sword-cvs] sword/src/modules/common zstr.cpp,1.22,1.23 zverse.cpp,1.32,1.33

sword@www.crosswire.org sword@www.crosswire.org
Mon, 11 Aug 2003 22:53:13 -0700


Update of /usr/local/cvsroot/sword/src/modules/common
In directory www:/tmp/cvs-serv17837/src/modules/common

Modified Files:
	zstr.cpp zverse.cpp 
Log Message:



Index: zstr.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/common/zstr.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- zstr.cpp	12 Aug 2003 05:36:30 -0000	1.22
+++ zstr.cpp	12 Aug 2003 05:53:11 -0000	1.23
@@ -617,7 +617,8 @@
 			compressor->Buf(rawBuf, &size);
 			compressor->zBuf(&size);
 
-			SWBuf buf(size + 5);
+			SWBuf buf;
+			buf.setSize(size + 5);
 			memcpy(buf.getRawData(), compressor->zBuf(&size), size); // 1 = encipher
 			buf.setSize(size);
 			rawZFilter(buf, 1); // 1 = encipher

Index: zverse.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/common/zverse.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- zverse.cpp	12 Aug 2003 05:36:30 -0000	1.32
+++ zverse.cpp	12 Aug 2003 05:53:11 -0000	1.33
@@ -341,7 +341,8 @@
 				compressor->zBuf(&zsize);
 				outzsize = zsize;
 
-				SWBuf buf(zsize + 5);
+				SWBuf buf;
+				buf.setSize(zsize + 5);
 				memcpy(buf.getRawData(), compressor->zBuf(&zsize), zsize);
 				buf.setSize(zsize);
 				rawZFilter(buf, 1); // 1 = encipher