You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/05/26 23:22:03 UTC

svn commit: r1128095 - /subversion/trunk/subversion/libsvn_wc/workqueue.c

Author: danielsh
Date: Thu May 26 21:22:02 2011
New Revision: 1128095

URL: http://svn.apache.org/viewvc?rev=1128095&view=rev
Log:
* subversion/libsvn_wc/workqueue.c
  (run_postupgrade): Fix an off-by-one error.

Tested by: none

Modified:
    subversion/trunk/subversion/libsvn_wc/workqueue.c

Modified: subversion/trunk/subversion/libsvn_wc/workqueue.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/workqueue.c?rev=1128095&r1=1128094&r2=1128095&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/workqueue.c (original)
+++ subversion/trunk/subversion/libsvn_wc/workqueue.c Thu May 26 21:22:02 2011
@@ -574,12 +574,12 @@ run_postupgrade(svn_wc__db_t *db,
      ### this code only runs during upgrade after the files had been
      ### removed earlier during the upgrade. */
   SVN_ERR(svn_io_write_unique(&temp_path, adm_path, SVN_WC__NON_ENTRIES_STRING,
-                              sizeof(SVN_WC__NON_ENTRIES_STRING),
+                              sizeof(SVN_WC__NON_ENTRIES_STRING) - 1,
                               svn_io_file_del_none, scratch_pool));
   SVN_ERR(svn_io_file_rename(temp_path, format_path, scratch_pool));
 
   SVN_ERR(svn_io_write_unique(&temp_path, adm_path, SVN_WC__NON_ENTRIES_STRING,
-                              sizeof(SVN_WC__NON_ENTRIES_STRING),
+                              sizeof(SVN_WC__NON_ENTRIES_STRING) - 1,
                               svn_io_file_del_none, scratch_pool));
   SVN_ERR(svn_io_file_rename(temp_path, entries_path, scratch_pool));