nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] Memory error in striponedir


From: Chris Allegretta
Subject: Re: [Nano-devel] Memory error in striponedir
Date: Wed, 12 Feb 2003 15:51:20 -0800
User-agent: Mutt/1.2.5.1i

On Mon, Feb 10, 2003 at 10:46:53AM -0500, David Benbennick wrote:
> On Sun, Feb 09, 2003 at 07:00:26PM -0800, Chris Allegretta wrote:
> > On Sat, Feb 08, 2003 at 01:51:01PM -0500, David Benbennick wrote:
> > > -    tmp = foo + strlen(foo);
> > > +    tmp = foo + strlen(foo) - 1;
> > > +    assert(tmp >= foo);
> > >      if (*tmp == '/')
> > > - tmp--;
> > > + *tmp == '\0';
> > 
> > Did you mean *tmp = '\0'; ?
> 
> Ack!  Yes.  Thanks for spotting that.

Credited and committed.

Chris A
-- 
Chris Allegretta        http://www.asty.org

"Share and Enjoy" - Douglas Adams, 1952 - 2001




reply via email to

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