https://github.com/python/cpython/commit/e5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8
commit: e5a7bc6f2eb9a3875063423caa67bb0ffcc3a6b8
branch: main
author: Clinton <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-10T08:17:50Z
summary:

gh-120296: Fix format string of fcntl.ioctl() audit (#120301)

files:
M Modules/fcntlmodule.c

diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index 873bdf2ac0657a..0c06c03a6c403e 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;
     }

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to