Linus Torvalds: Re: revert “fs/befs/linuxvfs.c: replace strncpy by strlcpy”
lkml.org
lkml.org
I ended up getting in the (probably bad) habit of using strlen+memcpy for all my string management needs. That is, until I realized I shouldn't be wasting my time with such tedious bit-twiddling and moved on to C++ with std::string.
That niche doesn't particularly exist anymore, so strncpy() isn't often a good fit for what people need these days. Hence they don't like strncpy(), but what they really mean is that they shouldn't have been considering strncpy() in the first place.
strncat() on the other hand... now that's a weird function!