Skip to content

Commit

Permalink
Fixeth for the AppleOS
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Jul 11, 2024
1 parent f749ad5 commit e87b026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/config.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e87b026

Please sign in to comment.