aboutsummaryrefslogtreecommitdiffstats
path: root/main/python/unchecked-ioctl.patch
blob: e80a8ed6f18dd0cb567eebc4a468f563ccae1b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Python-2.7.6.orig/Modules/fcntlmodule.c
+++ Python-2.7.6/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#|I:ioctl",
                          conv_descriptor, &fd, &code,
                          &str, &len, &mutate_arg)) {
         char *arg;