summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-07-12 13:05:33 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-07-12 13:05:33 (GMT)
commit03657cfdb056dbd36db12cc3db12a6b58a962e20 (patch)
tree18dc8d472d1eba419c8d2a31847de5607f805a66 /Modules/posixmodule.c
parent6253f83b0a2d261024cd5ef84d2e36fe4f4f1f3d (diff)
downloadcpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.zip
cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.tar.gz
cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.tar.bz2
replace PyXXX_Length calls with PyXXX_Size calls
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index c0b30f9..d879837 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1417,7 +1417,7 @@ posix_execve(PyObject *self, PyObject *args)
}
argvlist[argc] = NULL;
- i = PyMapping_Length(env);
+ i = PyMapping_Size(env);
envlist = PyMem_NEW(char *, i + 1);
if (envlist == NULL) {
PyErr_NoMemory();
@@ -1610,7 +1610,7 @@ posix_spawnve(PyObject *self, PyObject *args)
}
argvlist[argc] = NULL;
- i = PyMapping_Length(env);
+ i = PyMapping_Size(env);
envlist = PyMem_NEW(char *, i + 1);
if (envlist == NULL) {
PyErr_NoMemory();