Author: stsp
Date: Thu Sep  9 11:46:43 2010
New Revision: 995387

URL: http://svn.apache.org/viewvc?rev=995387&view=rev
Log:
* subversion/libsvn_fs_fs/fs_fs.c
  (read_rep_line): Use svn_cstring_atoi64() instead of apr_atoi64().

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=995387&r1=995386&r2=995387&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Thu Sep  9 11:46:43 2010
@@ -2501,6 +2501,7 @@ read_rep_line(struct rep_args **rep_args
   apr_size_t limit;
   struct rep_args *rep_args;
   char *str, *last_str;
+  apr_int64_t val;
 
   limit = sizeof(buffer);
   SVN_ERR(svn_io_read_length_line(file, buffer, &limit, pool));
@@ -2539,12 +2540,14 @@ read_rep_line(struct rep_args **rep_args
   str = apr_strtok(NULL, " ", &last_str);
   if (! str)
     goto error;
-  rep_args->base_offset = (apr_off_t) apr_atoi64(str);
+  SVN_ERR(svn_cstring_atoi64(&val, str));
+  rep_args->base_offset = (apr_off_t)val;
 
   str = apr_strtok(NULL, " ", &last_str);
   if (! str)
     goto error;
-  rep_args->base_length = (apr_size_t) apr_atoi64(str);
+  SVN_ERR(svn_cstring_atoi64(&val, str));
+  rep_args->base_length = (apr_size_t)val;
 
   *rep_args_p = rep_args;
   return SVN_NO_ERROR;


Reply via email to