From 8dc704930be62377549ec47b8929d0237ed25f79 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 20 Jun 2018 10:14:40 -0700 Subject: applypatch: {Load,Save}FileContents and ParseSha1 take std::string. Test: mmma -j bootable/recovery Test: Run recovery_component_test on marlin. Change-Id: Ifcf244346a88dac833d91b169a4c2aee1fe677f1 --- updater/install.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updater') diff --git a/updater/install.cpp b/updater/install.cpp index bd22467ab..9b1e2b805 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -319,7 +319,7 @@ Value* Sha1CheckFn(const char* name, State* state, const std::vectortype != VAL_STRING) { LOG(ERROR) << name << "(): arg " << i << " is not a string; skipping"; - } else if (ParseSha1(args[i]->data.c_str(), arg_digest) != 0) { + } else if (ParseSha1(args[i]->data, arg_digest) != 0) { // Warn about bad args and skip them. LOG(ERROR) << name << "(): error parsing \"" << args[i]->data << "\" as sha-1; skipping"; } else if (memcmp(digest, arg_digest, SHA_DIGEST_LENGTH) == 0) { -- cgit v1.2.3