From e87b026733bd836aa50a006a99983dad23bcaac5 Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Thu, 11 Jul 2024 11:48:38 +0200 Subject: [PATCH] Fixeth for the AppleOS --- src/config/config.cpp.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.cpp.in b/src/config/config.cpp.in index 7d4d06290..6dd69f053 100644 --- a/src/config/config.cpp.in +++ b/src/config/config.cpp.in @@ -61,7 +61,7 @@ std::string maybe_from_env(const std::string& varname) { #elif defined(__APPLE__) char buffer[PATH_MAX + 1]; uint32_t bufsize = PATH_MAX + 1; - if( _NSGetExecutablePath(buf, &bufsize) != 0) { + if( _NSGetExecutablePath(buffer, &bufsize) != 0) { return ""; } auto executable = fs::read_symlink(buffer);