From: Gerhard Sittig Date: Wed, 21 Jul 2021 21:48:22 +0000 (+0200) Subject: input/saleae: silence overzealous compiler warning X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=c3270084ba655950994f02e3620617f10a750d70 input/saleae: silence overzealous compiler warning Although the number of channels in data files saved by the Saleae export feature remains small, recent compilers keep complaining about potential truncation. Use a larger buffer to silence the warning message. No change in behaviour. --- diff --git a/src/input/saleae.c b/src/input/saleae.c index 697392ed..f63181b3 100644 --- a/src/input/saleae.c +++ b/src/input/saleae.c @@ -199,7 +199,7 @@ static int create_channels(struct sr_input *in) struct context *inc; int type; size_t count, idx; - char name[4]; + char name[24]; struct sr_channel *ch; inc = in->priv;