P Vixie writes:
> 
> 
> On October 24, 2016 6:37:16 PM GMT+02:00, Ken Hornstein <[email protected]> wrot
> e:
> 
> >I dunno, I think we'd need to think carefully if a particular use of
> >strncpy() really warrants an abort vs a truncate.  I mean, just
> >crapping
> >out on a really long line that other MUAs handle just fine seems rather
> >unfriendly to me.  What do others think?
> 
> Copy or die, as the default behavior.
> 
> Silent truncation should require explicit coding.
> 
> Strlcpy is completely bogus.

What's silent about strlcpy? Just check the return value against the size
of the buffer.

-- 
Anthony J. Bentley

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to