From f205ba1c4904b9466883a8f47311590e0659c675 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Wed, 29 Sep 2021 12:53:02 +0200 Subject: [PATCH] Add strlen to base path call on mac --- oscar64/oscar64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar64/oscar64.cpp b/oscar64/oscar64.cpp index cc8d92d..02fdf6a 100644 --- a/oscar64/oscar64.cpp +++ b/oscar64/oscar64.cpp @@ -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));