summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch_modes.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-25 16:44:17 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-25 16:44:17 +0200
commit839c40513aae03025de0868218e02a130c27dcb7 (patch)
tree2c70230fd22650dfe09e96e01cb25f9cec081df2 /applypatch/applypatch_modes.cpp
parentMerge "applypatch: Move to libbase logging." (diff)
parentMerge "applypatch: {Load,Save}FileContents and ParseSha1 take std::string." (diff)
downloadandroid_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.gz
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.bz2
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.lz
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.xz
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.zst
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.zip
Diffstat (limited to 'applypatch/applypatch_modes.cpp')
-rw-r--r--applypatch/applypatch_modes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch_modes.cpp b/applypatch/applypatch_modes.cpp
index 0728db9e3..6437e1be6 100644
--- a/applypatch/applypatch_modes.cpp
+++ b/applypatch/applypatch_modes.cpp
@@ -60,7 +60,7 @@ static bool ParsePatchArgs(int argc, const char** argv, std::vector<std::string>
}
uint8_t digest[SHA_DIGEST_LENGTH];
- if (ParseSha1(pieces[0].c_str(), digest) != 0) {
+ if (ParseSha1(pieces[0], digest) != 0) {
LOG(ERROR) << "Failed to parse SHA-1 \"" << argv[i] << "\"";
return false;
}