mirror of
https://git.freebsd.org/ports.git
synced 2025-05-27 16:36:28 -04:00
9 lines
288 B
Text
9 lines
288 B
Text
+++ rts/System/Platform/Misc.cpp 2015-04-08 20:05:21 -0400
|
|
@@ -226,5 +226,6 @@
|
|
mib[2] = KERN_PROC_PATHNAME;
|
|
mib[3] = -1;
|
|
- char buf[PATH_MAX];
|
|
+ long maxpath = pathconf("/", _PC_PATH_MAX);
|
|
+ char buf[maxpath];
|
|
size_t cb = sizeof(buf);
|
|
int err = sysctl(mib, 4, buf, &cb, NULL, 0);
|