]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120296: Fix format string of fcntl.ioctl() audit (#120301)
authorClinton <pygeek@users.noreply.github.com>
Mon, 10 Jun 2024 08:17:50 +0000 (04:17 -0400)
committerGitHub <noreply@github.com>
Mon, 10 Jun 2024 08:17:50 +0000 (08:17 +0000)
Modules/fcntlmodule.c

index 873bdf2ac0657aac057c7c64b6aa2ac0983b9282..0c06c03a6c403e0a1fc643e06727871507aaefa4 100644 (file)
@@ -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;
     }