From: Gerhard Sittig Date: Wed, 21 Jul 2021 21:46:49 +0000 (+0200) Subject: dmm/bm52x: silence overzealous compiler warning X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=46a36bf0bb2e;p=libsigrok.git dmm/bm52x: silence overzealous compiler warning 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. --- diff --git a/src/dmm/bm52x.c b/src/dmm/bm52x.c index b91cb4e4..89c393a9 100644 --- a/src/dmm/bm52x.c +++ b/src/dmm/bm52x.c @@ -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.