6 Dec
2010
6 Dec
'10
7:16 p.m.
On Mon, Dec 06, 2010 at 03:42:17PM +0000, Dimitris Papastamos wrote:
By using strncpy() if the source string does not have a null byte in the first n bytes, then the destination string is not null-terminated. This can be fixed in a two-step process by manually null-terminating the array after the use of strncpy() or by using strlcpy().
Applied, thanks.