Messages in this thread | | | From | Andries.Brouwer@cwi ... | Date | Tue, 1 Jul 2003 12:33:22 +0200 (MEST) | Subject | blind conversion strncpy -> strlcpy is harmful |
| |
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |