]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/module_builds.c
ccanlint: fix more potential segvs when reporting ccanlint errors.
[ccan] / tools / ccanlint / compulsory_tests / module_builds.c
index 9d697a303a57399a1754da32db7dfc0c20d1ffa0..44c882ce357494fb1aadcb8331360c2b311da99c 100644 (file)
@@ -65,7 +65,7 @@ static void do_build(struct manifest *m,
 
        m->compiled = build_module(m, keep, &errstr);
        if (!m->compiled) {
 
        m->compiled = build_module(m, keep, &errstr);
        if (!m->compiled) {
-               score_file_error(score, NULL, 0, errstr);
+               score_file_error(score, NULL, 0, "%s", errstr);
                return;
        }
 
                return;
        }