News for hackers. Stuff that matters.
Re:Strlcpy and strlcat added to glibc 2.38 by zbuf on Tuesday July 18, 2023 @03:05AM (#36768870)
Interesting to see the implementation is basically a two-pass process: strlen() to count the source string, followed by a memcpy().

My intuition would be to give some importance to not looping on the source string radically beyond the length of the destination buffer.

https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strl...

There are no comments on this comment yet.