1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Merge branch '3.1' into 3.3

This commit is contained in:
Georg Richter
2025-01-15 08:00:19 +01:00
5 changed files with 108 additions and 10 deletions

View File

@@ -175,7 +175,9 @@ static void mariadb_get_install_location()
goto end;
else {
#if defined(__APPLE__)
unsigned int len= PATH_MAX;
// If reading the path was successful, then *bufsize is
// unchanged.
unsigned int len= PATH_MAX - 1;
if (_NSGetExecutablePath(p, &len) != 0)
*p= 0;
else