From: Uwe Hermann Date: Sat, 7 Apr 2012 16:14:39 +0000 (+0200) Subject: sr/srd: Use/fix SR(D)_MAX_NUM_PROBES. X-Git-Tag: libsigrokdecode-0.1.0~4 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=63b1026d367275c7171da7dc7d5ac675a420f485;p=libsigrokdecode.git sr/srd: Use/fix SR(D)_MAX_NUM_PROBES. --- diff --git a/type_logic.c b/type_logic.c index bb4ef3d..b284ebf 100644 --- a/type_logic.c +++ b/type_logic.c @@ -33,7 +33,7 @@ static PyObject *srd_logic_iternext(PyObject *self) PyObject *py_samplenum, *py_samples; srd_logic *logic; uint64_t sample; - unsigned char probe_samples[SRD_MAX_NUM_PROBES]; + uint8_t probe_samples[SRD_MAX_NUM_PROBES + 1]; logic = (srd_logic *)self; if (logic->itercnt >= logic->inbuflen / logic->di->data_unitsize) {