nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Todd C. Miller
Subject: Re: [Nmh-workers] strncpy(3), die, die, die.
Date: Mon, 24 Oct 2016 14:44:47 -0600

On Mon, 24 Oct 2016 16:40:36 -0400, address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]