On 2013/11/22 06:26, Vladimir Támara Patiño wrote:
> On Thu, Nov 21, 2013 at 03:35:54PM -0700, Theo de Raadt wrote:
> >> better to talk to upstream about them. snprintf should be fairly non-
> >> contentious if done correctly, but for the strl* functions many upstreams
> >> will need a fallback mechanism for OS which don't have them.
> >
> >That's really easy:
> >
> >#define strlcpy(dst, src, dstsize)   snprintf(dst, dstsize, "%s", src)
> 
> Done that way in hexedit.h (adding check in configure and definition of
> HAVE_STRLCPY in config.h).

My point is that this is something to feed upstream, rather than patch in
ports.

> diff -ruN -x CVS -x *~ /usr/ports/editors/hexedit/Makefile ./Makefile

for future reference, 'cvs diff' is preferred; you can use 'cvs add' and
'cvs rm' against an anoncvs server if you need to add/remove files, and then
'cvs diff -uNp'.


Reply via email to