aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pypy-bootstrap/py2_unchecked-ioctl.py2patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pypy-bootstrap/py2_unchecked-ioctl.py2patch')
-rw-r--r--testing/pypy-bootstrap/py2_unchecked-ioctl.py2patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/pypy-bootstrap/py2_unchecked-ioctl.py2patch b/testing/pypy-bootstrap/py2_unchecked-ioctl.py2patch
new file mode 100644
index 00000000000..4d5564c2cb8
--- /dev/null
+++ b/testing/pypy-bootstrap/py2_unchecked-ioctl.py2patch
@@ -0,0 +1,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;