Hello,

I made an inspection on userland tree and there quite a few applications still
using strncpy(3) instead of strlcpy(3). Some of them may never need that safety
since the boundaries are always fixed, nevertheless since strlcpy is a drop-in
replacement it doesn't hurt to use, plus it will always be safer than strncpy.

The same question goes for strncat(3)->strlcat(3), can they just be swapped 
without causing any hiccups? Or should it be kept as is? What about kernel 
space?
There's also some usage there.

Best regards,
Ricardo Mestre

Reply via email to