You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/09/09 18:35:53 UTC
svn commit: r995485 - /subversion/trunk/subversion/libsvn_repos/load.c
Author: stsp
Date: Thu Sep 9 16:35:53 2010
New Revision: 995485
URL: http://svn.apache.org/viewvc?rev=995485&view=rev
Log:
* subversion/libsvn_repos/load.c
(parse_format_version, svn_repos_parse_dumpstream2): Replace use of atoi()
with svn_cstring_atoi().
Modified:
subversion/trunk/subversion/libsvn_repos/load.c
Modified: subversion/trunk/subversion/libsvn_repos/load.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/load.c?rev=995485&r1=995484&r2=995485&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/load.c (original)
+++ subversion/trunk/subversion/libsvn_repos/load.c Thu Sep 9 16:35:53 2010
@@ -649,7 +649,7 @@ parse_format_version(const char *version
return svn_error_create(SVN_ERR_STREAM_MALFORMED_DATA, NULL,
_("Malformed dumpfile header"));
- value = atoi(p+1);
+ SVN_ERR(svn_cstring_atoi(&value, p + 1));
if (value > SVN_REPOS_DUMPFILE_FORMAT_VERSION)
return svn_error_createf(SVN_ERR_STREAM_MALFORMED_DATA, NULL,
@@ -791,7 +791,7 @@ svn_repos_parse_dumpstream2(svn_stream_t
APR_HASH_KEY_STRING)))
{
/* ### someday, switch modes of operation here. */
- version = atoi(value);
+ SVN_ERR(svn_cstring_atoi(&version, value));
}
/* Or is this bogosity?! */
else