Shell (FreeBSD): remove trailing \0

This commit is contained in:
李通洲
2023-09-16 20:46:49 +08:00
parent 2082e01555
commit 6c1b39ae60
@@ -56,7 +56,7 @@ static void getProcessInformation(pid_t pid, FFstrbuf* processName, FFstrbuf* ex
exe->chars, &size,
NULL, 0
))
exe->length = (uint32_t)size;
exe->length = (uint32_t)size - 1;
#endif