On Sun, Apr 7, 2013 at 11:29 AM, John Keeping <[email protected]> wrote:
> +       if (filename.buf[filename.len - 1] != '/')
> +               strbuf_addch(&filename, '/');

> +       if (fullname.buf[fullname.len - 1] != '/')
> +               strbuf_addch(&fullname, '/');


Seems like it might be handy to have an ensure_end for strbuf (and
perhaps eventually depreciate the char* ensure_end if that code is
refactored to use strbuf as well).

_______________________________________________
cgit mailing list
[email protected]
http://hjemli.net/mailman/listinfo/cgit

Reply via email to