Browse Source

Fix extraneous NULL character on HTML export

Fix #2801
George Marques 8 years ago
parent
commit
604ddd691c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      platform/javascript/export/export.cpp

+ 2 - 2
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];
 	}
 }