fix linux build again
This commit is contained in:
@@ -18,9 +18,9 @@ namespace OpenVulkano
|
||||
std::string OpenVulkano::ExeAppendedZipResourceLoaderLinux::GetCurrentExecutablePath() const
|
||||
{
|
||||
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));
|
||||
return path;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user