nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] strncpy(3), die, die, die.

2016-10-24 14:00:25


On October 24, 2016 6:37:16 PM GMT+02:00, Ken Hornstein 
<kenh(_at_)pobox(_dot_)com> wrote:

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.

Vixie
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>