Savagedlight / libifconfig

A C API to do most things done by the FreeBSD 'ifconfig' program today
Other
26 stars 7 forks source link

Replace strncpy() calls with strlcpy() in libifconfig.c #9

Closed fnoyanisi closed 8 years ago

fnoyanisi commented 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!

Savagedlight commented 8 years ago

This looks good. Thanks!