Re: [dev] strlcpy and strlcat

2013-12-21 Thread Thorsten Glaser
Daniel Bryan dixit: >I'd like to know what the opinion here is of these functions. I've so Not using them in this time and age is gross negligence. Using strcpy, strcat and sprintf is even more; using strncpy is minor negligence, but _strncat_ is positively dangerous. So, yes, by all means, use

Re: [dev] strlcpy and strlcat

2013-12-21 Thread sin
On Sat, Dec 21, 2013 at 01:32:44PM +1100, Daniel Bryan wrote: > I just read this message by an OpenBSD developer on the prevalence of > strlcpy in the OpenBSD ports tree: > > http://marc.info/?l=openbsd-tech&m=138733933417096&w=2 > > I'd like to know what the opinion here is of these functions. I

Re: [dev] strlcpy and strlcat

2013-12-21 Thread Paul Onyschuk
There is also Annex K in C11 specifying strcpy_s and friends. Yet it is optional part of standard, so hard to say if it will be widely adopted. -- Paul Onyschuk

[dev] strlcpy and strlcat

2013-12-20 Thread Daniel Bryan
I just read this message by an OpenBSD developer on the prevalence of strlcpy in the OpenBSD ports tree: http://marc.info/?l=openbsd-tech&m=138733933417096&w=2 I'd like to know what the opinion here is of these functions. I've so far avoided them, but it seems like there's an argument to be made