]> sigrok.org Git - libsigrokdecode.git/commitdiff
sr/srd: Use/fix SR(D)_MAX_NUM_PROBES.
authorUwe Hermann <redacted>
Sat, 7 Apr 2012 16:14:39 +0000 (18:14 +0200)
committerUwe Hermann <redacted>
Tue, 10 Apr 2012 21:25:58 +0000 (23:25 +0200)
type_logic.c

index bb4ef3d262b09b60bcca6617d86514b63ed20d5d..b284ebf73d09744215a72784a5567dd246b78235 100644 (file)
@@ -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) {