fix linux build again
This commit is contained in:
@@ -18,7 +18,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user