[sword-cvs] sword/include swbuf.h,1.10,1.11

sword@www.crosswire.org sword@www.crosswire.org
Sun, 30 Mar 2003 16:19:22 -0700


Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv2857/include

Modified Files:
	swbuf.h 
Log Message:
no message

Index: swbuf.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swbuf.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** swbuf.h	28 Feb 2003 13:12:43 -0000	1.10
--- swbuf.h	30 Mar 2003 23:19:20 -0000	1.11
***************
*** 38,41 ****
--- 38,42 ----
  	char *end;
  	char fillByte;
+ 	long size;
  	unsigned int allocSize;
  	static char *nullStr;
***************
*** 45,51 ****
  		if (newsize > allocSize) {
  			allocSize = newsize + 5;
! 			end = (char *)(end - buf);
  			buf = (char *)realloc(buf, allocSize);
! 			end = (buf + (unsigned int)end);
  		}
  	}
--- 46,52 ----
  		if (newsize > allocSize) {
  			allocSize = newsize + 5;
! 			size = (end - buf);
  			buf = (char *)realloc(buf, allocSize);
! 			end = (buf + size);
  		}
  	}