apcupsd/patch-format-security
Jason Tibbitts 3d82f65c42 Fix format-security error.
Add a patch to fix the one line of code which triggered a
format-security error instead of disabling format security checks for
the entire package.
2021-01-30 14:56:53 -06:00

13 lines
385 B
Text

diff --git a/src/gapcmon/gapcmon.c b/src/gapcmon/gapcmon.c
index 40bf29d..111fe1f 100644
--- a/src/gapcmon/gapcmon.c
+++ b/src/gapcmon/gapcmon.c
@@ -2938,7 +2938,7 @@ static void gapc_util_log_app_msg(gchar * pch_func, gchar * pch_topic,
pch = g_strdup_printf("%s(%s) emsg=%s", pch_func, pch_topic, pch_emsg);
- g_message(pch);
+ g_message("%s", pch);
g_free(pch);