Commit 1e700d24 authored by Guido van Rossum's avatar Guido van Rossum

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).
parent 2314a047
...@@ -2007,6 +2007,7 @@ posix_execve(PyObject *self, PyObject *args) ...@@ -2007,6 +2007,7 @@ posix_execve(PyObject *self, PyObject *args)
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if (!PyArg_Parse((*getitem)(argv, i), if (!PyArg_Parse((*getitem)(argv, i),
"et;execve() arg 2 must contain only strings", "et;execve() arg 2 must contain only strings",
Py_FileSystemDefaultEncoding,
&argvlist[i])) &argvlist[i]))
{ {
lastarg = i; lastarg = i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment