[sword-cvs] sword/include swbuf.h,1.22,1.23

sword@www.crosswire.org sword@www.crosswire.org
Wed, 6 Aug 2003 03:34:38 -0700


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

Modified Files:
	swbuf.h 
Log Message:
added figure support

Index: swbuf.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swbuf.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- swbuf.h	4 Aug 2003 19:06:03 -0000	1.22
+++ swbuf.h	6 Aug 2003 10:34:36 -0000	1.23
@@ -44,7 +44,7 @@
 	static char junkBuf[JUNKBUFSIZE];
 
 	inline void assureMore(unsigned long pastEnd) {
-		if (end+pastEnd>=endAlloc) {
+		if (endAlloc-end < pastEnd) {
 			long newsize = (end-buf)+pastEnd;
 			allocSize = newsize + 16;
 			long size = (end - buf);