Browse Source

ccanlint: fix SEGV when example has format string.

Rusty Russell 15 years ago
parent
commit
285338ec89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/ccanlint/tests/examples_compile.c

+ 1 - 1
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;