1
0
mirror of synced 2025-01-31 03:53:44 +01:00

sys: Fixed copy-paste error

This commit is contained in:
WerWolv 2021-10-31 16:36:45 +01:00
parent c88053a575
commit 673d43b526

View File

@ -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<std::string> result;