3 ms·
For once I agree with the glibc developers: strlcat and strlcpy are bad interfaces. Truncation can cause security bugs, and it is generally awful behavior. The
by burfog 8y ago
For once I agree with the glibc developers: strlcat and strlcpy are bad interfaces.
Truncation can cause security bugs, and it is generally awful behavior. There is no silver bullet here: the programmer must not be a dummy about buffer sizes. Pretending otherwise is unhelpful.