2 ms·
Strncpy does not return a valid string. It is not a substitute for strcpy. Take the strlcpy() function from OpenBSD and incorporate that into your source if yo
by ori_b 10y ago
Strncpy does not return a valid string. It is not a substitute for strcpy.
Take the strlcpy() function from OpenBSD and incorporate that into your source if you don't have access. Strlcpy() is a well designed substitute for strcpy.