Closed fnoyanisi closed 8 years ago
Hi there,
This PR replaces strncpy() calls in libifconfig.c with strlcpy(), which is considered as a better and safer method of coping character strings.
I think portability is not an issue here since FreeBSD's implementation of ifconfig(8) already uses strlcpy() calls quite a lot.
Could you please review the PR? Thanks!
This looks good. Thanks!
Hi there,
This PR replaces strncpy() calls in libifconfig.c with strlcpy(), which is considered as a better and safer method of coping character strings.
I think portability is not an issue here since FreeBSD's implementation of ifconfig(8) already uses strlcpy() calls quite a lot.
Could you please review the PR? Thanks!