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

This commit is contained in:
Clinton 2024-06-10 04:17:50 -04:00 committed by GitHub
parent 0ae8579b85
commit e5a7bc6f2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View 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;
}