[Top][All Lists]

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

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

From: Paul Vixie
Subject: Re: [Nmh-workers] strncpy(3), die, die, die.
Date: Mon, 24 Oct 2016 15:08:28 -0700
User-agent: Postbox 5.0.5 (Windows/20161020)

Todd C. Miller wrote:
> 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.

it should just return a null string. partially useful results are bad.

P Vixie

reply via email to

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