Browse Source

ccanlint: fix format error when test output contains %

Rusty Russell 15 years ago
parent
commit
4a1ec39ed6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/ccanlint/tests/tests_pass.c

+ 1 - 1
tools/ccanlint/tests/tests_pass.c

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