projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
695934a
)
Make Py_ssize_t-clean
author
Thomas Wouters
<thomas@python.org>
Thu, 2 Mar 2006 00:21:10 +0000
(
00:21
+0000)
committer
Thomas Wouters
<thomas@python.org>
Thu, 2 Mar 2006 00:21:10 +0000
(
00:21
+0000)
Modules/fcntlmodule.c
patch
|
blob
|
history
diff --git
a/Modules/fcntlmodule.c
b/Modules/fcntlmodule.c
index 4197339e2f18edc8b9d1b9e4b3988e95f438cb16..d109e29e7c94e626254583990fd09311568ba19a 100644
(file)
--- a/
Modules/fcntlmodule.c
+++ b/
Modules/fcntlmodule.c
@@
-1,6
+1,8
@@
/* fcntl module */
+#define PY_SSIZE_T_CLEAN
+
#include "Python.h"
#ifdef HAVE_SYS_FILE_H
@@
-35,7
+37,7
@@
fcntl_fcntl(PyObject *self, PyObject *args)
int arg;
int ret;
char *str;
-
in
t len;
+
Py_ssize_
t len;
char buf[1024];
if (PyArg_ParseTuple(args, "O&is#:fcntl",
@@
-98,7
+100,7
@@
fcntl_ioctl(PyObject *self, PyObject *args)
int arg;
int ret;
char *str;
-
in
t len;
+
Py_ssize_
t len;
int mutate_arg = 1;
char buf[1024];