summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-10-22 13:09:54 +0200
committerGitHub <noreply@github.com>2016-10-22 13:09:54 +0200
commit24337f9c5ef8668153b2611fd98fd7a3de5119c5 (patch)
tree6d4a2cf5cd35bf14d4c790551e70869c4e43463c
parent7740b3912c215f8930eb754fc9f76c490cc907d2 (diff)
parent604ddd691cc0599dabfda30d8a49b08eb51f7e5b (diff)
Merge pull request #6884 from vnen/html-export-char
Fix extraneous NULL character on HTML export
-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];
}
}