[sword-cvs] sword/src/modules/common rawstr.cpp,1.35,1.36 rawstr4.cpp,1.17,1.18

sword@www.crosswire.org sword@www.crosswire.org
Thu, 20 Feb 2003 00:25:22 -0700


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

Modified Files:
	rawstr.cpp rawstr4.cpp 
Log Message:
Started HUGE task of moving all char **buf over to SWBuf &buf

NEED YOUR HELP



Index: rawstr.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/common/rawstr.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** rawstr.cpp	20 Oct 2002 21:08:02 -0000	1.35
--- rawstr.cpp	20 Feb 2003 07:25:20 -0000	1.36
***************
*** 343,348 ****
  		if (*buf)
  			delete [] *buf;
! 		*buf    = new char [ ++(*isize) * FILTERPAD ];
! 		*idxbuf = new char [ (*isize) * FILTERPAD ];
  
  		memset(*buf, 0, *isize);
--- 343,348 ----
  		if (*buf)
  			delete [] *buf;
! 		*buf    = new char [ ++(*isize) ];
! 		*idxbuf = new char [ (*isize) ];
  
  		memset(*buf, 0, *isize);

Index: rawstr4.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/common/rawstr4.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** rawstr4.cpp	1 Oct 2002 19:52:40 -0000	1.17
--- rawstr4.cpp	20 Feb 2003 07:25:20 -0000	1.18
***************
*** 347,352 ****
  		if (*buf)
  			delete [] *buf;
! 		*buf    = new char [ ++(*isize) * FILTERPAD ];
! 		*idxbuf = new char [ (*isize) * FILTERPAD ];
  
  		memset(*buf, 0, *isize);
--- 347,352 ----
  		if (*buf)
  			delete [] *buf;
! 		*buf    = new char [ ++(*isize) ];
! 		*idxbuf = new char [ (*isize) ];
  
  		memset(*buf, 0, *isize);