]> sigrok.org Git - libsigrok.git/commitdiff
input/saleae: silence overzealous compiler warning
authorGerhard Sittig <redacted>
Wed, 21 Jul 2021 21:48:22 +0000 (23:48 +0200)
committerGerhard Sittig <redacted>
Wed, 4 Aug 2021 20:10:51 +0000 (22:10 +0200)
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.

src/input/saleae.c

index 697392edafdfab889f13c91f8679746fd2b01ab6..f63181b3716a12bc2523a00fd81342061751c469 100644 (file)
@@ -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;