From 3b0a5aed333a3ef61a7cbb65bb9a14bf751039ea Mon Sep 17 00:00:00 2001 From: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:42:35 +0300 Subject: [PATCH] fs: Use proper append operator --- src/core/file_sys/fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index 5f462937..f2fda657 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -64,8 +64,8 @@ std::filesystem::path MntPoints::GetHostPath(const std::string& guest_directory) while (!path_parts.empty()) { const auto& part = path_parts.back(); const auto add_match = [&](const auto& host_part) { - current_path += host_part; - guest_path += part; + current_path /= host_part; + guest_path /= part; path_cache[guest_path] = current_path; path_parts.pop_back(); };