tools: manifest.c should use path_canon.
[ccan] / tools / ccanlint / tests / examples_exist.c
index 02ddb486268f15e62b686e2b86c675166b728554..e308be20ec76289bab821fe77c19f9413eab8f63 100644 (file)
@@ -32,7 +32,8 @@ static char *add_example(struct manifest *m, struct ccan_file *source,
                *strchr(name, ' ') = '_';
 
        name = temp_file(m, ".c", take(name));
-       f = new_ccan_file(m, path_dirname(m, name), path_basename(m, name));
+       f = new_ccan_file(m, take(path_dirname(m, name)),
+                         take(path_basename(m, name)));
        tal_steal(f, name);
        list_add_tail(&m->examples, &f->list);