Add strlen to base path call on mac

This commit is contained in:
drmortalwombat 2021-09-29 12:53:02 +02:00
parent bc4aea064a
commit f205ba1c49

View File

@ -78,7 +78,7 @@ int main(int argc, const char** argv)
uint32_t length = sizeof(basePath);
_NSGetExecutablePath(basePath, &length);
length = strlen(basePath);
#else
int length = readlink("/proc/self/exe", basePath, sizeof(basePath));