From 4fa2d6d0af091ee8f80cb09369c6c8deb7a0a3e9 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 7 Feb 2019 22:25:22 +0300 Subject: [PATCH] comparison: print a "%s" string This shouldn't change runtime, but I think GCC complains about this now. Signed-off-by: Dan Carpenter --- smatch_comparison.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_comparison.c b/smatch_comparison.c index 51b4a454..ea2f9304 100644 --- a/smatch_comparison.c +++ b/smatch_comparison.c @@ -2327,7 +2327,7 @@ static int split_op_param_key(char *value, int *op, int *param, char **key) if (!parse_comparison(&value, op)) return 0; - snprintf(buf, sizeof(buf), value); + snprintf(buf, sizeof(buf), "%s", value); p = buf; if (*p++ != '$') -- 2.11.4.GIT