[Top][All Lists]
[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: |
Sun, 9 Feb 2003 19:00:26 -0800 |
User-agent: |
Mutt/1.2.5.1i |
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'; ?
Chris A
--
Chris Allegretta http://www.asty.org
"Share and Enjoy" - Douglas Adams, 1952 - 2001