From: Michael Kerrisk Date: Fri, 16 Oct 2020 08:58:38 +0000 (+0200) Subject: seccomp_unotify.2: wfix in example program X-Git-Tag: man-pages-5.12~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4db7ae69d1abac8af28aedbb06ca429b29e54e2;p=thirdparty%2Fman-pages.git seccomp_unotify.2: wfix in example program Signed-off-by: Michael Kerrisk --- diff --git a/man2/seccomp_unotify.2 b/man2/seccomp_unotify.2 index 9c93f0d4c4..8399aa734b 100644 --- a/man2/seccomp_unotify.2 +++ b/man2/seccomp_unotify.2 @@ -1235,7 +1235,7 @@ getTargetPathname(struct seccomp_notif *req, int notifyFd, /* Read bytes at the location containing the pathname argument (i.e., the first argument) of the mkdir(2) call */ - ssize_t s = pread(procMemFd, path, PATH_MAX, req\->data.args[0]); + ssize_t s = pread(procMemFd, path, len, req\->data.args[0]); if (s == \-1) errExit("pread");