ccanlint: fix format error when test output contains %
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Feb 2011 23:54:01 +0000 (10:24 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Feb 2011 23:54:01 +0000 (10:24 +1030)
tools/ccanlint/tests/tests_pass.c

index 0edfad262c4ba02299052231691b23ce40784ff7..1d3c018296d409bda74892a849ab41e25e64384a 100644 (file)
@@ -39,7 +39,7 @@ static void do_run_tests(struct manifest *m,
                                        i->compiled))
                                score->score++;
                        else
                                        i->compiled))
                                score->score++;
                        else
-                               score_file_error(score, i, 0, cmdout);
+                               score_file_error(score, i, 0, "%s", cmdout);
                }
        }
 
                }
        }