summaryrefslogtreecommitdiffstats
path: root/NetworkIOMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-20 19:20:19 +0200
committercgzones <cgzones@googlemail.com>2020-10-20 21:47:26 +0200
commit45a22080c991f3b4462d9222f377b27f6c04174f (patch)
tree90e7a1bc0c6b332c4cd5c32c4074525011f09981 /NetworkIOMeter.c
parent8a08a3209c093f9b1137ec5879d3804026b0df6e (diff)
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
Diffstat (limited to 'NetworkIOMeter.c')
-rw-r--r--NetworkIOMeter.c2
1 files changed, 1 insertions, 1 deletions
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));

© 2014-2024 Faster IT GmbH | imprint | privacy policy