From: Gerhard Sittig Date: Tue, 9 Aug 2022 16:05:49 +0000 (+0200) Subject: dmm/bm52x: silence compiler warning related to printf() buffer size X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=9eba5419ef0f7c5ed6590d15d74a42c1eed97fc1;hp=ffd150decfdde9c1bcfc291f633ac6aa91f140b3 dmm/bm52x: silence compiler warning related to printf() buffer size Increase another text buffer's size to cover the maximum length that an integer could occupy in theory. Which amends commit 46a36bf0bb2e. The previous implementation did not suffer from any issue, we know the number of recordings in the BM52x DMM to remain small. This change only silences a compiler warning, doesn't change the parser's behaviour. --- diff --git a/src/dmm/bm52x.c b/src/dmm/bm52x.c index 89c393a9..3a4a62b3 100644 --- a/src/dmm/bm52x.c +++ b/src/dmm/bm52x.c @@ -1362,7 +1362,7 @@ SR_PRIV int brymen_bm52x_config_get(void *st, uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { struct brymen_bm52x_state *state; - char text[20]; + char text[32]; state = st;