summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin.c4
1 files 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();
}