summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorClinton <pygeek@users.noreply.github.com>2024-06-10 08:17:50 (GMT)
committerGitHub <noreply@github.com>2024-06-10 08:17:50 (GMT)
commite5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8 (patch)
treee3eddbd644fdce54b6c62ec2e19338076f34e7ad /Modules
parent0ae8579b85f9b0cd3f287082ad6e194bdb025d88 (diff)
downloadcpython-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.c2
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;
}