posix_execve(): add missing argument for "et" format in PyArg_Parse()

call.  This caused mysterious crashes (hard to debug because it was
happening in a child process).
This commit is contained in:
Guido van Rossum 2002-10-16 16:52:11 +00:00
parent 2314a0470f
commit 1e700d24e9

View file

@ -2007,6 +2007,7 @@ posix_execve(PyObject *self, PyObject *args)
for (i = 0; i < argc; i++) {
if (!PyArg_Parse((*getitem)(argv, i),
"et;execve() arg 2 must contain only strings",
Py_FileSystemDefaultEncoding,
&argvlist[i]))
{
lastarg = i;