From 673d43b526455b629b8af6718b24582e119fe500 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 31 Oct 2021 16:36:45 +0100 Subject: [PATCH] sys: Fixed copy-paste error --- plugins/libimhex/source/helpers/paths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/libimhex/source/helpers/paths.cpp b/plugins/libimhex/source/helpers/paths.cpp index f87b21067..59dc87bdc 100644 --- a/plugins/libimhex/source/helpers/paths.cpp +++ b/plugins/libimhex/source/helpers/paths.cpp @@ -24,7 +24,7 @@ namespace hex { return exePath; #elif defined(OS_LINUX) std::string exePath(PATH_MAX, '\0'); - readlink("/proc/self/exe", executablePath.data(), PATH_MAX); + readlink("/proc/self/exe", exePath.data(), PATH_MAX); return exePath; #elif defined(OS_MACOS) @@ -146,7 +146,7 @@ namespace hex { const auto exePath = getExecutablePath(); if (!exePath.empty()) - dataDirs.emplace(dataDirs.begin(), std::filesystem::path(executablePath.data()).parent_path()); + dataDirs.emplace(dataDirs.begin(), std::filesystem::path(exePath.data()).parent_path()); std::vector result;