Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: libedit
On Wed, Oct 09, 2019 at 11:20:22AM +0100, Patrick Welche wrote:
> On Wed, Oct 09, 2019 at 11:11:54AM +0100, Patrick Welche wrote:
> > On Wed, Oct 09, 2019 at 10:52:54AM +0100, Patrick Welche wrote:
> > > here seems to be some sort of out by one error (/bin/sh):
> > >
> > > cd Ne[tab] -> cd NetBS
> > >
> > > That wasn't the case before this morning's update...
> >
> > Trivial fix on the way:
> >
> > The stpncpy() and strncpy() functions copy at most len characters
> > The strlcpy() function copies up to size - 1 characters
>
> This fixes it, but seems to defeat the point of using strlcpy - rather
> leave as strncpy?
Already fixed by Christos - thanks!
Patrick
Home |
Main Index |
Thread Index |
Old Index