Re: Retain orig. filename as suffix for tmp. filename



On Mon, Feb 24, 2003 at 01:39:44AM +0100, Adam Byrtek / alpha wrote:
> +    basename = strrchr (filename, PATH_SEP);

> +    if (basename && *basename==PATH_SEP)
> +	basename++;
this is totally bogus.

if (basename)
  basename++;
else
  basename = filename;

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.



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