X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fmanifest.c;h=9a8c4cd097d9632387032ad2366ac438e17c1d97;hp=fe3e4680b2d49117338def1e27bfc3b2ff58607e;hb=94e7bbe83e4071cebe189d8487acb3df7552fb24;hpb=c9d946d07ae9a270042bcfef2bccfa09de6bddd9 diff --git a/tools/manifest.c b/tools/manifest.c index fe3e4680..9a8c4cd0 100644 --- a/tools/manifest.c +++ b/tools/manifest.c @@ -3,6 +3,7 @@ #include "tools.h" #include #include +#include #include #include #include @@ -43,10 +44,10 @@ static struct htable_manifest *manifests; const char *get_ccan_file_contents(struct ccan_file *f) { if (!f->contents) { - f->contents = tal_grab_file(f, f->fullname, - &f->contents_size); + f->contents = grab_file(f, f->fullname); if (!f->contents) err(1, "Reading file %s", f->fullname); + f->contents_size = tal_count(f->contents) - 1; } return f->contents; }