mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user