summaryrefslogtreecommitdiff
path: root/platform/javascript/export/export.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/javascript/export/export.cpp')
-rw-r--r--platform/javascript/export/export.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp
index 50fa4f8815..cd2e24216a 100644
--- a/platform/javascript/export/export.cpp
+++ b/platform/javascript/export/export.cpp
@@ -178,10 +178,11 @@ static void _fix_files(Vector<uint8_t>& html,uint64_t p_data_size) {
}
CharString cs = strnew.utf8();
- html.resize(cs.size());
- for(int i=9;i<cs.size();i++) {
+ html.resize(cs.length());
+ for(int i=9;i<cs.length();i++) {
html[i]=cs[i];
}
+
}
struct JSExportData {