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: sigrok-cli-0.3.0~4 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8364461d47bf8e32767989fdd08f563d983cb816;p=sigrok-cli.git sr/srd: Use/fix SR(D)_MAX_NUM_PROBES. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 204d5c2..5539041 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -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 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;