X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense_exists.c;h=85ff79854082a096756f037ec1b415de4ee50cdd;hb=6aa2f4e347e5d66a392b879fe901bc582099a552;hp=af1bc52a07c85e875829f54824c56bdad9540256;hpb=dc8042b42500f79f613b1197df6cdf739615a89f;p=ccan diff --git a/tools/ccanlint/tests/license_exists.c b/tools/ccanlint/tests/license_exists.c index af1bc52a..85ff7985 100644 --- a/tools/ccanlint/tests/license_exists.c +++ b/tools/ccanlint/tests/license_exists.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -73,7 +74,7 @@ static void handle_license_link(struct manifest *m, struct score *score) { struct doc_section *d = find_license_tag(m); const char *prefix = link_prefix(m); - const char *link = tal_fmt(m, "%s/LICENSE", m->dir); + const char *link = path_join(m, m->dir, "LICENSE"); const char *ldest = expected_link(score, prefix, m->license); char *q; @@ -97,7 +98,7 @@ static void check_has_license(struct manifest *m, { char buf[PATH_MAX]; ssize_t len; - char *license = tal_fmt(m, "%s/LICENSE", m->dir); + char *license = path_join(m, m->dir, "LICENSE"); const char *expected; struct doc_section *d; const char *prefix = link_prefix(m);