From 27ac3ef35aa0d83f0dc5f2ff00e766f26f365afe Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Wed, 22 Mar 2023 16:45:15 -0500 Subject: [PATCH] fix crash in postbuiltlint (#977) --- src/vcpkg/postbuildlint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vcpkg/postbuildlint.cpp b/src/vcpkg/postbuildlint.cpp index c7c0da2ef3..351c942671 100644 --- a/src/vcpkg/postbuildlint.cpp +++ b/src/vcpkg/postbuildlint.cpp @@ -394,8 +394,8 @@ namespace vcpkg 1); // The +1 is needed to remove the "/" const Path relative_path = found_relative_native; msg_sink.print(Color::none, - fmt::format("\n configure_file(\"${CURRENT_BUILDTREES_DIR}/{}/{}\" " - "\"${CURRENT_PACKAGES_DIR}/share/{}/copyright\" COPYONLY)\n", + fmt::format("\n configure_file(\"${{CURRENT_BUILDTREES_DIR}}/{}/{}\" " + "\"${{CURRENT_PACKAGES_DIR}}/share/{}/copyright\" COPYONLY)\n", relative_path.generic_u8string(), found_file.filename(), spec.name()));