[sword-cvs] sword/src/utilfuns utilstr.cpp,1.21,1.22 utilxml.cpp,1.5,1.6

sword@www.crosswire.org sword@www.crosswire.org
Thu, 19 Jun 2003 09:58:32 -0700


Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv19591/src/utilfuns

Modified Files:
	utilstr.cpp utilxml.cpp 
Log Message:
no message

Index: utilstr.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/utilstr.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** utilstr.cpp	1 Oct 2002 19:52:41 -0000	1.21
--- utilstr.cpp	19 Jun 2003 16:58:30 -0000	1.22
***************
*** 31,35 ****
  			delete [] *ipstr;
  		int len = strlen(istr) + 1;
! 		*ipstr = new char [ len*2 ];	// *2 buffer for unicode manipulations
  		memcpy(*ipstr, istr, len);
  	}
--- 31,35 ----
  			delete [] *ipstr;
  		int len = strlen(istr) + 1;
! 		*ipstr = new char [ len ];
  		memcpy(*ipstr, istr, len);
  	}

Index: utilxml.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/utilxml.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** utilxml.cpp	18 Jun 2003 20:15:00 -0000	1.5
--- utilxml.cpp	19 Jun 2003 16:58:30 -0000	1.6
***************
*** 43,46 ****
--- 43,48 ----
  			}
  		}
+ 		if (!buf[i])
+ 			break;
  	}
  	parsed = true;
***************
*** 63,67 ****
  
  	if (buf) {
! 		delete buf;
  		buf = 0;
  	}
--- 65,69 ----
  
  	if (buf) {
! 		delete [] buf;
  		buf = 0;
  	}