Re: strncpy->strlcpy question

2015-12-29 Thread Ted Unangst
Philip Guenther wrote: > On Fri, Dec 25, 2015 at 8:21 PM, Ricardo Mestre > wrote: > > I made an inspection on userland tree and there quite a few applications > > still > > using strncpy(3) instead of strlcpy(3). Some of them may never need that > > safety > > since the boundaries are always fi

Re: strncpy->strlcpy question

2015-12-25 Thread Philip Guenther
On Fri, Dec 25, 2015 at 8:21 PM, Ricardo Mestre wrote: > I made an inspection on userland tree and there quite a few applications still > using strncpy(3) instead of strlcpy(3). Some of them may never need that > safety > since the boundaries are always fixed, nevertheless since strlcpy is a drop

Re: strncpy->strlcpy question

2015-12-25 Thread Michael McConville
Ricardo Mestre wrote: > I made an inspection on userland tree and there quite a few > applications still using strncpy(3) instead of strlcpy(3). Some of > them may never need that safety since the boundaries are always fixed, > nevertheless since strlcpy is a drop-in replacement it doesn't hurt to

strncpy->strlcpy question

2015-12-25 Thread Ricardo Mestre
Hello, I made an inspection on userland tree and there quite a few applications still using strncpy(3) instead of strlcpy(3). Some of them may never need that safety since the boundaries are always fixed, nevertheless since strlcpy is a drop-in replacement it doesn't hurt to use, plus it will alwa