replace PyXXX_Length calls with PyXXX_Size calls

This commit is contained in:
Jeremy Hylton 2000-07-12 13:05:33 +00:00
parent 6253f83b0a
commit 03657cfdb0
14 changed files with 30 additions and 29 deletions

View file

@ -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();