[sword-svn] r3073 - trunk/src/modules/comments/zcom
scribe at crosswire.org
scribe at crosswire.org
Tue Mar 4 17:27:53 MST 2014
Author: scribe
Date: 2014-03-04 17:27:52 -0700 (Tue, 04 Mar 2014)
New Revision: 3073
Modified:
trunk/src/modules/comments/zcom/zcom.cpp
Log:
applied refdoc's patch to fix the uninitialized buffnum value.
Modified: trunk/src/modules/comments/zcom/zcom.cpp
===================================================================
--- trunk/src/modules/comments/zcom/zcom.cpp 2014-03-05 00:22:26 UTC (rev 3072)
+++ trunk/src/modules/comments/zcom/zcom.cpp 2014-03-05 00:27:52 UTC (rev 3073)
@@ -68,25 +68,25 @@
/******************************************************************************
- * zCom::getRawEntry - Returns the correct verse when char * cast
- * is requested
+ * zCom::getRawEntry - Returns the current verse buffer
*
- * RET: string buffer with verse
+ * RET: buffer with verse
*/
+
SWBuf &zCom::getRawEntryBuf() const {
long start = 0;
unsigned short size = 0;
- unsigned long buffnum;
- VerseKey *key = &getVerseKey();
+ unsigned long buffnum = 0;
+ VerseKey &key = getVerseKey();
- findOffset(key->getTestament(), key->getTestamentIndex(), &start, &size, &buffnum);
+ findOffset(key.getTestament(), key.getTestamentIndex(), &start, &size, &buffnum);
entrySize = size; // support getEntrySize call
-
+
entryBuf = "";
- zReadText(key->getTestament(), start, size, buffnum, entryBuf);
+
+ zReadText(key.getTestament(), start, size, buffnum, entryBuf);
+ rawFilter(entryBuf, &key);
- rawFilter(entryBuf, key);
-
// if (!isUnicode())
prepText(entryBuf);
More information about the sword-cvs
mailing list