]> sigrok.org Git - sigrok-cli.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)
sigrok-cli.c

index 204d5c2cad7897a09cbbc9ebabdd1e6bf6a99e29..5539041b6cdee63a481aa8f2fbbdef16e2dd832e 100644 (file)
@@ -292,7 +292,7 @@ static void show_pd_detail(void)
 static void datafeed_in(struct sr_dev *dev, struct sr_datafeed_packet *packet)
 {
        static struct sr_output *o = NULL;
 static void datafeed_in(struct sr_dev *dev, struct sr_datafeed_packet *packet)
 {
        static struct sr_output *o = NULL;
-       static int probelist[SR_MAX_NUM_PROBES] = { 0 };
+       static int probelist[SR_MAX_NUM_PROBES + 1] = { 0 };
        static uint64_t received_samples = 0;
        static int unitsize = 0;
        static int triggered = 0;
        static uint64_t received_samples = 0;
        static int unitsize = 0;
        static int triggered = 0;