X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_compile.c;h=b10940ae8a3bb4c112ed4cd1fcbc726c2e88410e;hp=2479d80a70a7ff9d93dc58f9428eaefb09e80ed8;hb=e0529e15e0c7f9251af5465ef03f208d279affc1;hpb=5f551788224a3cf0988ae490a807b20292822f20 diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index 2479d80a..b10940ae 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -464,8 +464,8 @@ static struct ccan_file *mangle_example(struct manifest *m, name = temp_file(example, ".c", take(tal_fmt(NULL, "mangled-%s", example->name))); f = new_ccan_file(example, - path_dirname(example, name), - path_basename(example, name)); + take(path_dirname(example, name)), + take(path_basename(example, name))); tal_steal(f, name); fd = open(f->fullname, O_WRONLY | O_CREAT | O_EXCL, 0600);