Fix a bug introduced by fc5f4c95f7

When PY_SSIZE_T_CLEAN is defined, PyArg_ParseTuple expects a
Py_ssize_t instead of an int to store the size of the data
This commit is contained in:
montag451 committed 2021-01-04 15:23:31 +01:00
1 parent ab82c974da
commit c22d59b07b
1 file changed
+1 -1
+1 -1
View File
@@ -684,7 +684,7 @@ static PyObject* pytun_tuntap_write(PyObject* self, PyObject* args)
{
pytun_tuntap_t* tuntap = (pytun_tuntap_t*)self;
char* buf;
int len;
Py_ssize_t len;
ssize_t written;
if (!PyArg_ParseTuple(args, "s#:write", &buf, &len))