From c529f06cf0428b4e90f667c3dc3f560ff807db1a Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 17 Nov 2023 10:06:00 +0100 Subject: [PATCH] statd: fix gcc warning, "format not a string literal" error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by: Joachim Wiberg --- src/statd/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statd/shared.c b/src/statd/shared.c index 6db0d76b..e122a3c1 100644 --- a/src/statd/shared.c +++ b/src/statd/shared.c @@ -13,7 +13,7 @@ json_t *json_get_output(const char *cmd) json_t *j_root; FILE *proc; - proc = popenf("re", cmd); + proc = popenf("re", "%s", cmd); if (!proc) { ERROR("Error, running command %s", cmd); return NULL;