aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_hash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_hash.cpp')
-rw-r--r--toolsrc/src/commands_hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/commands_hash.cpp b/toolsrc/src/commands_hash.cpp
index ea6977070..092b05bd1 100644
--- a/toolsrc/src/commands_hash.cpp
+++ b/toolsrc/src/commands_hash.cpp
@@ -7,7 +7,7 @@ namespace vcpkg::Commands::Hash
static void do_file_hash(fs::path const& path, std::wstring const& hashType)
{
auto cmd_line = Strings::wformat(LR"(CertUtil.exe -hashfile "%s" %s)",
- path.c_str(), hashType.c_str());
+ path.c_str(), hashType);
auto ec_data = System::cmd_execute_and_capture_output(cmd_line);
Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0, "Running command:\n %s\n failed", Strings::utf16_to_utf8(cmd_line));