summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--updater/updater.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index 7327c52e3..46de9ad09 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -105,8 +105,7 @@ int main(int argc, char** argv) {
return 4;
}
- std::string script;
- script.resize(script_entry.uncompressed_length);
+ std::string script(script_entry.uncompressed_length, '\0');
int extract_err = ExtractToMemory(za, &script_entry, reinterpret_cast<uint8_t*>(&script[0]),
script_entry.uncompressed_length);
if (extract_err != 0) {
@@ -210,6 +209,5 @@ int main(int argc, char** argv) {
CloseArchive(updater_info.package_zip);
}
sysReleaseMap(&map);
-
return 0;
}