applypatch: {Load,Save}FileContents and ParseSha1 take std::string.
Test: mmma -j bootable/recovery Test: Run recovery_component_test on marlin. Change-Id: Ifcf244346a88dac833d91b169a4c2aee1fe677f1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user