pid1: fix (harmless) off-by-one in PATH_MAX comparison
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Dec 2018 15:22:10 +0000 (16:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Dec 2018 10:57:26 +0000 (11:57 +0100)
commit60473f0c23674bbde9f1b3cf1a2222a89c254886
tree29d642687e2d8a0cc84a52852c80bdd013ef00a4
parentf8703ed7e51121cd42bfb05fe9fe2a626118b07b
pid1: fix (harmless) off-by-one in PATH_MAX comparison

PATH_MAX is supposed to include the terminating NUL byte. But we already
check that there is no NUL byte in the specified path. Hence the maximum
length we can expect is PATH_MAX - 1.

This doesn't change much, but makes this use of PATH_MAX consistent with the
rest of the codebase.
src/core/manager.c