<p></p>
<p><b>@xiota</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/3024#discussion_r758089088">src/utils.c</a>:</p>
<pre style='color:#555'>> @@ -2414,6 +2419,48 @@ void utils_start_new_geany_instance(const gchar *doc_path)
 }
 
 
+
+static int get_path_max(const char *path)
+{
+#ifdef PATH_MAX
+       return PATH_MAX;
+#else
+       int path_max = pathconf(path, _PC_PATH_MAX);
+       if (path_max <= 0)
+               path_max = 4096;
+       return path_max;
+#endif
</pre>
<p dir="auto">I found two different manpages online that may apply to Mac... <a href="https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/realpath.3.html" rel="nofollow">iOS</a> and <a href="http://manpagez.com/man/3/realpath/" rel="nofollow">Darwin</a>.  The Darwin page states that it will return the "address of newly allocated memory" when the second argument is NULL.  The iOS page does not mention what happens.</p>
<p dir="auto">I can change it to use NULL if you like.  It looks like the windows implementation in the file already supports that usage.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3024#discussion_r758089088">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY2CT5HA6Z7Y36EBG3UOMSO3ANCNFSM5I4G3H2A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJZZVGARAHFRY3IT4H3UOMSO3A5CNFSM5I4G3H2KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOGC4OLMY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3024#discussion_r758089088",
"url": "https://github.com/geany/geany/pull/3024#discussion_r758089088",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>