summaryrefslogtreecommitdiff
path: root/src/interface/RichLabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/RichLabel.cpp')
-rw-r--r--src/interface/RichLabel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/RichLabel.cpp b/src/interface/RichLabel.cpp
index c93e217..84dc500 100644
--- a/src/interface/RichLabel.cpp
+++ b/src/interface/RichLabel.cpp
@@ -55,7 +55,7 @@ void RichLabel::updateRichText()
int originalTextPos = 0;
char * originalText = new char[textSource.length()+1];
std::copy(textSource.begin(), textSource.end(), originalText);
- originalText[textSource.length()+1] = 0;
+ originalText[textSource.length()] = 0;
int stackPos = -1;
RichTextRegion * regionsStack = new RichTextRegion[256];