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

Re: svn commit: rev 653 - trunk/subversion/libsvn_fs trunk/subversion/tests/libsvn_fs

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-12-19 01:16:20 CET

On Mon, Dec 17, 2001 at 11:31:41AM -0600, cmpilato@tigris.org wrote:
> Author: cmpilato
> Date: 2001-12-17 17:31 GMT
> New Revision: 653
>
> Modified:
> trunk/subversion/libsvn_fs/dag.c
> trunk/subversion/tests/libsvn_fs/fs-test.c
> Log:
> * subversion/libsvn_fs/dag.c
>
> (svn_fs__dag_get_revision): Bug fix -- C-Mike forgot that skel_t's
> don't have null-terminated data. You gotsta pay attention to the
> "len" field.
>...
> - *rev = atoi ((SVN_FS__NR_HDR_REV (SVN_FS__NR_HEADER (node_rev)))->data);

As a curiosity, why was this failing? Shouldn't atoi() stop parsing at the
first non-integer character? What was it doing such that it returned a funny
value?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 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.