diff options
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 4cdd8bcd9..827db9671 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1805,7 +1805,7 @@ int FastBootTool::Main(int argc, char* argv[]) { auto format = [&](const std::string& partition) { fb_perform_format(partition, 0, type_override, size_override, ""); }; - do_for_partitions(partition.c_str(), slot_override, format, true); + do_for_partitions(partition, slot_override, format, true); } else if (command == "signature") { std::string filename = next_arg(&args); std::vector<char> data; @@ -1876,7 +1876,7 @@ int FastBootTool::Main(int argc, char* argv[]) { } do_flash(partition.c_str(), fname.c_str()); }; - do_for_partitions(pname.c_str(), slot_override, flash, true); + do_for_partitions(pname, slot_override, flash, true); } else if (command == "flash:raw") { std::string partition = next_arg(&args); std::string kernel = next_arg(&args); |