]> sigrok.org Git - libsigrok.git/commitdiff
dmm/bm52x: silence overzealous compiler warning
authorGerhard Sittig <redacted>
Wed, 21 Jul 2021 21:46:49 +0000 (23:46 +0200)
committerGerhard Sittig <redacted>
Wed, 4 Aug 2021 20:10:51 +0000 (22:10 +0200)
Although the number of recordings in the BM52x DMM remains small, recent
compilers keep complaining about potential truncation. Use a larger
buffer to silence the warning message. No change in behaviour.

src/dmm/bm52x.c

index b91cb4e4d5a52e7fa523361398a8d7de50330235..89c393a92348634423502cb858c50e6ce35612a5 100644 (file)
@@ -1428,7 +1428,7 @@ SR_PRIV int brymen_bm52x_config_list(void *st, uint32_t key, GVariant **data,
        int ret;
        size_t count, idx;
        GVariantBuilder gvb;
-       char name[20];
+       char name[32];
 
        /*
         * Have common keys handled by caller's common code.