Subject: Re: bin/22276: cvs BROKEN in current-20030726-063809
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 07/26/2003 15:50:26
> Good catch!
> 
> The following mechanical change gets things working again.  I'll leave it
> for Christos to integrate :-)

> -	fname = xmalloc (strlen (p->dir) + sizeof CVSADM_CIPROG + 10);
> +	fname = xmalloc (strlen (p->dir) + strlen (CVSADM_CIPROG) + 1 + 10);
>  	sprintf (fname, "%s/%s", p->dir, CVSADM_CIPROG);

I've committed a change that makes the above:
	asprintf (&fname, "%s/%s", p->dir, CVSADM_CIPROG);
One or two cases have strlen() though - where the logic got a bit deep.

	David

-- 
David Laight: david@l8s.co.uk