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 <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-11-17 10:40:17 +01:00
parent 04046437d7
commit c529f06cf0
+1 -1
View File
@@ -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;