blind conversion strncpy -> strlcpy is harmful

Date: Tue Jul 01 2003 - 05:33:22 EST

I notice that people have been replacing strncpy by strlcpy,
introducing bugs in the process.

It is not true that strlcpy is guaranteed to be better than
strncpy. Indeed, strlcpy cannot handle character arrays that
are not necessarily 0-terminated.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:12 EST