tools: manifest.c should use path_canon.
[ccan] / tools / ccanlint / tests / examples_compile.c
index 2479d80a70a7ff9d93dc58f9428eaefb09e80ed8..b10940ae8a3bb4c112ed4cd1fcbc726c2e88410e 100644 (file)
@@ -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,
        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);
        tal_steal(f, name);
 
        fd = open(f->fullname, O_WRONLY | O_CREAT | O_EXCL, 0600);