diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-04 00:03:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-04 00:03:23 +0300 |
| commit | 5f161fd86dd5bb936a1a2a13391b13b7e59ec201 (patch) | |
| tree | c76e72829f65ab72c23c312cb42a36ab5853491c /Modules/_testcapimodule.c | |
| parent | feec3dc9c308052754f9e4848c1c1ddb007e9f66 (diff) | |
| download | cpython-git-5f161fd86dd5bb936a1a2a13391b13b7e59ec201.tar.gz | |
bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316)
Diffstat (limited to 'Modules/_testcapimodule.c')
| -rw-r--r-- | Modules/_testcapimodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 5460587230..f9de940afe 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1560,7 +1560,7 @@ parse_tuple_and_keywords(PyObject *self, PyObject *args) { PyObject *sub_args; PyObject *sub_kwargs; - char *sub_format; + const char *sub_format; PyObject *sub_keywords; Py_ssize_t i, size; @@ -1573,7 +1573,7 @@ parse_tuple_and_keywords(PyObject *self, PyObject *args) double buffers[8][4]; /* double ensures alignment where necessary */ - if (!PyArg_ParseTuple(args, "OOyO:parse_tuple_and_keywords", + if (!PyArg_ParseTuple(args, "OOsO:parse_tuple_and_keywords", &sub_args, &sub_kwargs, &sub_format, &sub_keywords)) return NULL; |
