summaryrefslogtreecommitdiff
path: root/src/modules/filters/thmlgbf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/filters/thmlgbf.cpp')
-rw-r--r--src/modules/filters/thmlgbf.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/filters/thmlgbf.cpp b/src/modules/filters/thmlgbf.cpp
index e85fdef..14e0203 100644
--- a/src/modules/filters/thmlgbf.cpp
+++ b/src/modules/filters/thmlgbf.cpp
@@ -2,7 +2,7 @@
*
* thmlgbf.cpp - ThML to GBF filter
*
- * $Id: thmlgbf.cpp 2833 2013-06-29 06:40:28Z chrislit $
+ * $Id: thmlgbf.cpp 3427 2016-07-03 14:30:33Z scribe $
*
* Copyright 1999-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -269,9 +269,11 @@ char ThMLGBF::processText(SWBuf &text, const SWKey *key, const SWModule *module)
continue;
}
if (intoken) {
- if (tokpos < 2045)
+ if (tokpos < 2045) {
token[tokpos++] = *from;
+ // TODO: why is this + 2 ?
token[tokpos+2] = 0;
+ }
}
else text += *from;
}