fix linux build again

This commit is contained in:
ohyzha
2024-12-21 17:43:17 +02:00
parent 82403b9aae
commit d2811bc9b1

View File

@@ -18,9 +18,9 @@ namespace OpenVulkano
std::string OpenVulkano::ExeAppendedZipResourceLoaderLinux::GetCurrentExecutablePath() const std::string OpenVulkano::ExeAppendedZipResourceLoaderLinux::GetCurrentExecutablePath() const
{ {
std::string path(PATH_MAX, '\0'); std::string path(PATH_MAX, '\0');
ssize_t sz = readlink("/proc/self/exe", path.data(), path.capacity())); ssize_t sz = readlink("/proc/self/exe", path.data(), path.capacity());
path.resize(std::max<ssize_t>(0, sz)); path.resize(std::max<ssize_t>(0, sz));
return path; return path;
} }
} }