subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1426359 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/transaction.c
Date Thu, 27 Dec 2012 22:59:48 GMT
Author: stefan2
Date: Thu Dec 27 22:59:48 2012
New Revision: 1426359

URL: http://svn.apache.org/viewvc?rev=1426359&view=rev
Log:
On the fsfs-format7 branch: fix a type mismatch

* subversion/libsvn_fs_fs/transaction.c
  (store_sha1_rep_mapping): use the correct string type

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/transaction.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/transaction.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/transaction.c?rev=1426359&r1=1426358&r2=1426359&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/transaction.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/transaction.c Thu Dec 27 22:59:48
2012
@@ -560,7 +560,7 @@ store_sha1_rep_mapping(svn_fs_t *fs,
                                             svn_fs_fs__id_txn_id(noderev->id),
                                             noderev->data_rep->sha1_checksum,
                                             pool);
-      svn_string_t *rep_string
+      svn_stringbuf_t *rep_string
         = svn_fs_fs__unparse_representation(noderev->data_rep,
                                             ffd->format,
                                             (noderev->kind == svn_node_dir),
@@ -570,8 +570,8 @@ store_sha1_rep_mapping(svn_fs_t *fs,
                                APR_WRITE | APR_CREATE | APR_TRUNCATE
                                | APR_BUFFERED, APR_OS_DEFAULT, pool));
 
-      SVN_ERR(svn_io_file_write_full(rep_file, rep_string,
-                                     strlen(rep_string), NULL, pool));
+      SVN_ERR(svn_io_file_write_full(rep_file, rep_string->data,
+                                     rep_string->len, NULL, pool));
 
       SVN_ERR(svn_io_file_close(rep_file, pool));
     }



Mime
View raw message