nmh-workers
[Top] [All Lists]

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

2016-10-24 15:45:00
On Mon, 24 Oct 2016 16:40:36 -0400, Valdis(_dot_)Kletnieks(_at_)vt(_dot_)edu 
wrote:

In other words - if the source string doesn't fit, it will create
a non-NULL-terminated destination string for you.  Repeat that,
slowly, until it sinks in.

It says nothing of the sort, please re-read the manual.  The source
string doesn't fit the result is always NUL-terminated unless the
specified size is 0.

 - todd

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