diff options
author | Daniel Rosenberg <drosen@google.com> | 2015-11-13 12:51:23 -0800 |
---|---|---|
committer | Daniel Rosenberg <drosen@google.com> | 2015-11-13 12:56:19 -0800 |
commit | 996ecd8b7d6372eb53bb5ec47d202320bdd72431 (patch) | |
tree | 0051fa216090aafe0a6296f6af813137645cd764 /fastboot/fastboot.cpp | |
parent | 82a2b2441ca7684bb22d8b7f72546b4754e817a3 (diff) |
Fix fastboot to not add '-' before suffix
Change-Id: I9351b385412151498f47ab46a2620f21b9ac38b8
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 3ab8f94fa..9f72c8336 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -751,9 +751,9 @@ static void do_for_partition(usb_handle* usb, const char *part, const char *slot if (!fb_getvar(usb, "current-slot", ¤t_slot)) { die("Failed to identify current slot.\n"); } - func(std::string(part) + '-' + current_slot); + func(std::string(part) + current_slot); } else { - func(std::string(part) + '-' + slot); + func(std::string(part) + slot); } } else { if (force_slot && slot && slot[0]) { |