mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 14:31:00 +01:00
FFPlatform (Linux): tidy
This commit is contained in:
1 parent
f91a8aea4d
commit
b3484088e9
1 file changed
+1
-1
@@ -20,7 +20,7 @@ static void getExePath(FFPlatform* platform)
|
||||
FFstrbuf* const exePath = &platform->exePath;
|
||||
ffStrbufEnsureFree(exePath, PATH_MAX);
|
||||
#ifdef __linux__
|
||||
ssize_t exePathLen = readlink("/proc/self/exe", exePath->chars, exePath->allocated);
|
||||
ssize_t exePathLen = readlink("/proc/self/exe", exePath->chars, exePath->allocated - 1);
|
||||
#elif defined(__APPLE__)
|
||||
int exePathLen = proc_pidpath((int) getpid(), exePath->chars, exePath->allocated);
|
||||
#elif defined(__FreeBSD__)
|
||||
|
||||
Reference in new issue
Block a user