From 285338ec891a6a70987df07e568773ca88122454 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 28 Jan 2011 17:11:06 +1030 Subject: [PATCH] ccanlint: fix SEGV when example has format string. --- tools/ccanlint/tests/examples_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index 8ab80643..578805fe 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -599,7 +599,7 @@ static void build_examples(struct manifest *m, bool keep, err[1]); } } - score_file_error(score, i, 0, error); + score_file_error(score, i, 0, "%s", error); /* This didn't work, so not a candidate for combining. */ prev = NULL; -- 2.39.2