diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-10-22 13:09:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-22 13:09:54 +0200 |
commit | 24337f9c5ef8668153b2611fd98fd7a3de5119c5 (patch) | |
tree | 6d4a2cf5cd35bf14d4c790551e70869c4e43463c | |
parent | 7740b3912c215f8930eb754fc9f76c490cc907d2 (diff) | |
parent | 604ddd691cc0599dabfda30d8a49b08eb51f7e5b (diff) |
Merge pull request #6884 from vnen/html-export-char
Fix extraneous NULL character on HTML export
-rw-r--r-- | platform/javascript/export/export.cpp | 4 |
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]; } } |