From: Rusty Russell Date: Thu, 17 Feb 2011 23:54:01 +0000 (+1030) Subject: ccanlint: fix format error when test output contains % X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=4a1ec39ed6624666bb857b089f219bf3adbb944f;hp=502fa86836da59f1534e0a37f2f516334ed35866 ccanlint: fix format error when test output contains % --- diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index 0edfad26..1d3c0182 100644 --- a/tools/ccanlint/tests/tests_pass.c +++ b/tools/ccanlint/tests/tests_pass.c @@ -39,7 +39,7 @@ static void do_run_tests(struct manifest *m, i->compiled)) score->score++; else - score_file_error(score, i, 0, cmdout); + score_file_error(score, i, 0, "%s", cmdout); } }