address review comment

This commit is contained in:
Xuan Son Nguyen 2025-11-20 21:54:22 +01:00
parent cd5c699304
commit a2e912cf35
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static std::filesystem::path get_server_exec_path() {
return std::filesystem::path(buf.data()); return std::filesystem::path(buf.data());
} }
} }
return std::filesystem::path(std::string(buf.data(), (size > 0) ? size : 0)); throw std::runtime_error("_NSGetExecutablePath failed after buffer resize");
} }
#else #else
char path[FILENAME_MAX]; char path[FILENAME_MAX];