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

Re: export, checkout, commit performance

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-03-10 02:00:27 CET

On 09 Mar 2006 17:09:35 -0600, kfogel@collab.net <kfogel@collab.net> wrote:

> Why would we ever not use sizeof() when calculating len, though? It's
> always right. It can never be wrong. To the argument that we would
> never change the buffer's size, I point to this patch as
> counter-evidence :-).

sizeof is wrong in this case because it would be sizeof the pointer,
not sizeof the array, since it switches to dynamically allocating the
buffer.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 10 02:01:02 2006

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.