From 0d5decc077e8263db8f9cd4336fe53f6d52d3234 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 4 Feb 2021 08:14:17 +0100 Subject: fix Wformat-truncation --- plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.c b/plugin.c index f8c2de9..bfe2702 100644 --- a/plugin.c +++ b/plugin.c @@ -510,9 +510,9 @@ cString cPluginGraphLCD::SVDRPCommand(const char *Command, const char *Option, i } } } - char buf[25]; + char buf[64]; std::string retval = "RECONNECT status: "; - snprintf(buf, 24, "OK = %1d, FAILED = %1d", count_ok, count_fail); + snprintf(buf, sizeof(buf), "OK = %1d, FAILED = %1d", count_ok, count_fail); retval += buf; return retval.c_str(); } -- cgit v1.2.3