static PyObject *frame_data(PyObject *self, PyObject *args) and static PyObject *get_data(PyObject *self, PyObject *args) both declare a const char* array which PyArg_ParseTuple is supposed to populate. The behavior seems undefined as this works on my windows computer, but not on the mac.
Allocating a size for the c arrays fixes the issue, f.ex:
const char send_data[255]; instead of const char *send_data
static PyObject *frame_data(PyObject *self, PyObject *args)andstatic PyObject *get_data(PyObject *self, PyObject *args)both declare aconst char* arraywhichPyArg_ParseTupleis supposed to populate. The behavior seems undefined as this works on my windows computer, but not on the mac.Allocating a size for the c arrays fixes the issue, f.ex:
const char send_data[255];instead ofconst char *send_data