<<< Date Index >>>     <<< Thread Index >>>

Re: feature freeze? (Re: [Announce] mutt-1.5.13 is out)



On Thu, 17 Aug 2006, Matthew D. Fuller wrote:

On Thu, Aug 17, 2006 at 05:56:33AM +0000 I heard the voice of
Rocco Rutte, and lo! it spake thus:

  if (tmp[tmplen-1]=='/') tmp[--templen]=0;

Oh, and you probably want while() there, just to be thorough.

the fragment's missing a check to ensure that tmplen is greater than zero.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net