[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Memory error in striponedir
From: |
David Benbennick |
Subject: |
Re: [Nano-devel] Memory error in striponedir |
Date: |
Mon, 10 Feb 2003 10:46:53 -0500 |
User-agent: |
Mutt/1.2.5.1i |
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.
pgpeKXFgDee2G.pgp
Description: PGP signature