commit 9827789a47f19dcad0e77fabc674d0ddd93260ff parent 986e4981dfbb75ec03ece57b7632523f368f0110 Author: sin <sin@2f30.org> Date: Thu, 29 Aug 2013 18:43:16 +0100 Use BUFSIZ instead of PATH_MAX Diffstat:
M | pidof.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pidof.c b/pidof.c @@ -20,7 +20,7 @@ main(int argc, char *argv[]) struct dirent *entry; pid_t pid; struct procstat ps; - char cmdline[PATH_MAX], *cmd, *p; + char cmdline[BUFSIZ], *cmd, *p; int i, found = 0; ARGBEGIN {