commit | be03a5aad05cbf331926e7dfe920f046b012cac6 | [log] [tgz] |
---|---|---|
author | Chen, Luhai <luhai.chen@intel.com> | Thu Sep 14 03:37:40 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Sep 14 03:37:40 2017 +0000 |
tree | 69a1fd66f4198cfd04a8aa8f3ae83456528e8086 | |
parent | b216a0a2ee7e8eca75b1a09e93a395e8eace8808 [diff] | |
parent | 5744dfe3cc9bf7caa8a297f87528419979b138ff [diff] |
Fix keyname generation issue am: 5744dfe3cc Change-Id: Iad7a5325249b609720a295473194e40ff1747d4a
diff --git a/KeyUtil.cpp b/KeyUtil.cpp index 7bbbf01..dbc73c1 100644 --- a/KeyUtil.cpp +++ b/KeyUtil.cpp
@@ -98,7 +98,7 @@ static std::string keyname(const std::string& prefix, const std::string& raw_ref) { std::ostringstream o; o << prefix << ":"; - for (auto i : raw_ref) { + for (unsigned char i : raw_ref) { o << std::hex << std::setw(2) << std::setfill('0') << (int)i; } return o.str();