[sword-cvs] sword/src/modules/comments/rawfiles rawfiles.cpp,1.27,1.28

sword@www.crosswire.org sword@www.crosswire.org
Tue, 1 Apr 2003 03:14:07 -0700


Update of /usr/local/cvsroot/sword/src/modules/comments/rawfiles
In directory www:/tmp/cvs-serv5004/src/modules/comments/rawfiles

Modified Files:
	rawfiles.cpp 
Log Message:
no message

Index: rawfiles.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/comments/rawfiles/rawfiles.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** rawfiles.cpp	27 Feb 2003 00:56:31 -0000	1.27
--- rawfiles.cpp	1 Apr 2003 10:14:05 -0000	1.28
***************
*** 114,118 ****
  	long  start;
  	unsigned short size;
- 	char *tmpbuf;
  	VerseKey *key = 0;
  
--- 114,117 ----
***************
*** 131,135 ****
  		entryBuf = path;
  		entryBuf += '/';
! 		readText(key->Testament(), start, (size + 2), tmpbuf);
  		entryBuf += tmpbuf;
  	}
--- 130,134 ----
  		entryBuf = path;
  		entryBuf += '/';
! 		readText(key->Testament(), start, size, tmpbuf);
  		entryBuf += tmpbuf;
  	}
***************
*** 138,147 ****
  		entryBuf = path;
  		entryBuf += '/';
! 		entryBuf += getNextFilename();
  		doSetText(key->Testament(), key->Index(), tmpbuf);
  		entryBuf += tmpbuf;
  	}
! 	datafile = FileMgr::systemFileMgr.open(tmpbuf, O_CREAT|O_WRONLY|O_BINARY|O_TRUNC);
! 	delete [] tmpbuf;
  	if (datafile->getFd() > 0) {
  		write(datafile->getFd(), inbuf, len);
--- 137,145 ----
  		entryBuf = path;
  		entryBuf += '/';
! 		tmpbuf = getNextFilename();
  		doSetText(key->Testament(), key->Index(), tmpbuf);
  		entryBuf += tmpbuf;
  	}
! 	datafile = FileMgr::systemFileMgr.open(entryBuf, O_CREAT|O_WRONLY|O_BINARY|O_TRUNC);
  	if (datafile->getFd() > 0) {
  		write(datafile->getFd(), inbuf, len);