TerminalShell: correctly set PATH_MAX on Linux

This commit is contained in:
李通洲
2023-09-02 10:05:30 -04:00
parent 04d56d9b6a
commit 3692e49e9b
@@ -331,6 +331,8 @@ const FFTerminalShellResult* ffDetectTerminalShell()
const uint32_t exePathLen = PROC_PIDPATHINFO_MAXSIZE;
#elif defined(MAXPATH)
const uint32_t exePathLen = MAXPATH;
#elif defined(PATH_MAX)
const uint32_t exePathLen = PATH_MAX;
#else
const uint32_t exePathLen = 260;
#endif