News for hackers. Stuff that matters.
Re:Open source can't coordinate by patrakov on Friday June 20, 2025 @01:20PM (#44329865)
The argument is also totally wrong because the whole point of strlcpy is to copy the string and, if it fails, calculate the amount of storage that was really required, without making two passes over the data that does fit. The fact that the too-small buffer is overwritten with a truncated copy of a string is just a side effect.

There are no comments on this comment yet.