Re: [hackers] [sbase] libutil/recurse: Simplify adding trailing slash || Michael Forney
On 2020-06-23, Laslo Hunhold <dev_AT_frign.de> wrote:
> isn't that a bug waiting to happen when anything about the semantics of
> the function later changes?
I don't think it will be a problem. We are not interested in the path
with an appended trailing slash, it is just an intermediate step in
constructing the path to the child. When we add the final path
component, we necessarily check that the buffer has enough space for
the directory entry name and nul-terminator.
Received on Tue Jun 23 2020 - 20:43:41 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 23 2020 - 20:48:32 CEST