This commit is contained in:
Jeremy 2024-05-22 23:39:57 -05:00
parent 0a593e1449
commit 2e58ac2260
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -49,8 +49,8 @@ namespace detail {
static bool valid = false;
if(!did_init) {
did_init = true;
constexpr std::uint32_t bufferSize = CPPTRACE_PATH_MAX + 1;
char buffer[bufferSize];
char buffer[CPPTRACE_PATH_MAX + 1];
std::uint32_t bufferSize = sizeof buffer;
if(_NSGetExecutablePath(buffer, &bufferSize) == 0) {
name.assign(buffer, bufferSize);
valid = true;