From 45a22080c991f3b4462d9222f377b27f6c04174f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 20 Oct 2020 19:20:19 +0200 Subject: [PATCH] Increase print buffer in NetworkIOMeter_display In case the packet values wrap-around or have other weird values, the current buffer might be to small --- NetworkIOMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkIOMeter.c b/NetworkIOMeter.c index 8c0cb45d..44792c15 100644 --- a/NetworkIOMeter.c +++ b/NetworkIOMeter.c @@ -63,7 +63,7 @@ static void NetworkIOMeter_updateValues(ATTR_UNUSED Meter* this, char* buffer, i } static void NetworkIOMeter_display(ATTR_UNUSED const Object* cast, RichString* out) { - char buffer[32]; + char buffer[64]; RichString_write(out, CRT_colors[METER_TEXT], "rx: "); Meter_humanUnit(buffer, cached_rxb_diff, sizeof(buffer));