On Sun, Apr 7, 2013 at 11:30 AM, John Keeping <[email protected]> wrote: > @@ -122,13 +124,14 @@ static void print_tag_downloads(const struct cgit_repo > *repo, const char *ref) > for (f = cgit_snapshot_formats; f->suffix; f++) { > if (!(repo->snapshots & f->bit)) > continue; > - filename = fmt("%s%s", ref, f->suffix); > - cgit_snapshot_link(filename, NULL, NULL, NULL, NULL, > filename); > + strbuf_addf(&filename, "%s%s", ref, f->suffix); > + cgit_snapshot_link(filename.buf, NULL, NULL, NULL, NULL, > filename.buf); > html(" "); > }
You need to call strbuf_reset inside that loop. Otherwise the filenames will be concatenated for each type. _______________________________________________ cgit mailing list [email protected] http://hjemli.net/mailman/listinfo/cgit
