diff options
author | Clinton <pygeek@users.noreply.github.com> | 2024-06-10 08:17:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 08:17:50 (GMT) |
commit | e5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8 (patch) | |
tree | e3eddbd644fdce54b6c62ec2e19338076f34e7ad /Modules | |
parent | 0ae8579b85f9b0cd3f287082ad6e194bdb025d88 (diff) | |
download | cpython-e5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8.zip cpython-e5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8.tar.gz cpython-e5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8.tar.bz2 |
gh-120296: Fix format string of fcntl.ioctl() audit (#120301)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/fcntlmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 873bdf2..0c06c03 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -170,7 +170,7 @@ fcntl_ioctl_impl(PyObject *module, int fd, unsigned long code, Py_ssize_t len; char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */ - if (PySys_Audit("fcntl.ioctl", "iIO", fd, code, + if (PySys_Audit("fcntl.ioctl", "ikO", fd, code, ob_arg ? ob_arg : Py_None) < 0) { return NULL; } |