summaryrefslogtreecommitdiffstats
path: root/SysArchMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-06 13:13:16 +0200
committerBenBE <BenBE@geshi.org>2021-03-04 23:57:45 +0100
commit2d1042adb382aa95456beff31b40abb7196567a0 (patch)
tree29e1a48c2927ce887a777b20847efae16b73c977 /SysArchMeter.c
parent23c5b9ce3c50a7c7aaa9a5734cad50d12610d8d8 (diff)
Save text buffer in Meter
Diffstat (limited to 'SysArchMeter.c')
-rw-r--r--SysArchMeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/SysArchMeter.c b/SysArchMeter.c
index c368e944..220ed466 100644
--- a/SysArchMeter.c
+++ b/SysArchMeter.c
@@ -14,13 +14,13 @@ in the source distribution for its full text.
static const int SysArchMeter_attributes[] = {HOSTNAME};
-static void SysArchMeter_updateValues(ATTR_UNUSED Meter* this, char* buffer, size_t size) {
+static void SysArchMeter_updateValues(Meter* this) {
static char* string;
if (string == NULL)
Platform_getRelease(&string);
- String_safeStrncpy(buffer, string, size);
+ String_safeStrncpy(this->txtBuffer, string, sizeof(this->txtBuffer));
}
const MeterClass SysArchMeter_class = {

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