Subject: Re: rm(1) and cp(1) printable characters diff
To: Charles Blundell <cb@kittenz.org>
From: Thomas Klausner <wiz@netbsd.org>
List: tech-userlevel
Date: 07/21/2003 19:06:29
On Mon, Jul 21, 2003 at 05:59:37PM +0100, Charles Blundell wrote:
> +	if (strlen(target) > MAXPATHLEN) {
> +		char *fn;
> +		fn = printescaped(target);
> +		errx(1, "%s: name too long", fn);
> +		free(fn);
> +	}

free() after you exit() using errx() won't do much :)
 Thomas