summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-10-20 21:11:13 -0200
committerGeorge Marques <george@gmarqu.es>2016-10-20 21:11:13 -0200
commit604ddd691cc0599dabfda30d8a49b08eb51f7e5b (patch)
tree11a6deb608b45b9032182bf42f116811b870a53f
parentc23e8797f1bec30defd1903cfeef0992cb1f1a89 (diff)
Fix extraneous NULL character on HTML export
Fix #2801
-rw-r--r--platform/javascript/export/export.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp
index de57d770c4..f934916aa2 100644
--- a/platform/javascript/export/export.cpp
+++ b/platform/javascript/export/export.cpp
@@ -195,8 +195,8 @@ void EditorExportPlatformJavaScript::_fix_html(Vector<uint8_t>& p_html, const St
}
CharString cs = strnew.utf8();
- p_html.resize(cs.size());
- for(int i=9;i<cs.size();i++) {
+ p_html.resize(cs.length());
+ for(int i=9;i<cs.length();i++) {
p_html[i]=cs[i];
}
}