[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Proposed New Feature (SVNROOT)

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-03-16 20:24:22 CET

Greg Hudson wrote:
>
> + char buf[strlen(svnroot)+strlen(local_dir)+1];
> + sprintf(buf, "%s/%s", svnroot, local_dir);
>
> You've made use of a gcc extension here; in regular old C, arrays must
> have constant length. Use apr_psprintf() instead.

And the length allocated was one byte too short.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 16 20:23:06 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.