From 3120bc5dd04112af33f34947d94449461443f989 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 16 Oct 2020 10:58:38 +0200 Subject: [PATCH] seccomp_user_notif.2: wfix in example program Signed-off-by: Michael Kerrisk --- man2/seccomp_user_notif.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/seccomp_user_notif.2 b/man2/seccomp_user_notif.2 index 86d19f4a7b..67e83bde12 100644 --- a/man2/seccomp_user_notif.2 +++ b/man2/seccomp_user_notif.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"); -- 2.47.2