aboutsummaryrefslogtreecommitdiffstats
path: root/main/python2/unchecked-ioctl.patch
blob: 4d5564c2cb8e598882b4620a2ee019ffc0504435 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./Modules/fcntlmodule.c.orig
+++ ./Modules/fcntlmodule.c
@@ -118,7 +118,7 @@
     int mutate_arg = 1;
     char buf[IOCTL_BUFSZ+1];  /* argument plus NUL byte */
 
-    if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl",
+    if (PyArg_ParseTuple(args, "O&Iw#|n:ioctl",
                          conv_descriptor, &fd, &code,
                          &str, &len, &mutate_arg)) {
         char *arg;