libutil/recurse: Simplify adding trailing slash
We know that r->pathlen < sizeof(r->path) since r->path is nul-terminated, so we can safely add a '/' here. If there is no space left over for the rest of the path and nul-terminator, this will be caught by the subsequent estrlcpy.master
parent
5c76e79f41
commit
fdb9084da9
Loading…
Reference in New Issue