diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-10-16 10:58:38 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-06-10 10:40:17 +1200 |
| commit | e4db7ae69d1abac8af28aedbb06ca429b29e54e2 (patch) | |
| tree | ec9b6a918039453fc99441acdcb206ecd73ddc23 /man2 | |
| parent | 5c12cebdf2daf0eddba9d8a82d94fd97b077022b (diff) | |
| download | man-pages-e4db7ae69d1abac8af28aedbb06ca429b29e54e2.tar.gz | |
seccomp_unotify.2: wfix in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/seccomp_unotify.2 | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
