nmh-workers
[Top] [All Lists]

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

2016-10-29 11:42:54
Hi Ken,

   strncpy(sm_reply.text, str, sizeof(sm_reply.text));
   sm_reply.text[sizeof(sm_reply.text) - 1] = '\0';

If this is what I think it is ... you know, I think this truncation is
benign.

Could be.  I just picked one at random to show a typical call-site
pattern.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

_______________________________________________
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>