seccomp_unotify.2: wfix in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-10-16 10:58:38 +02:00
parent 5c12cebdf2
commit e4db7ae69d
1 changed files with 1 additions and 1 deletions

View File

@ -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");