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 2015/08/17 02:04:40 UTC

svn commit: r1696185 - /subversion/trunk/subversion/libsvn_fs_fs/id.c

Author: stefan2
Date: Mon Aug 17 00:04:40 2015
New Revision: 1696185

URL: http://svn.apache.org/r1696185
Log:
Follow-up to r1696171: Fix FSFS breakage.

* subversion/libsvn_fs_fs/id.c
  (svn_fs_fs__id_serialize): This is a case where actual data size and
                             and interface type size don't match up.

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/id.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/id.c?rev=1696185&r1=1696184&r2=1696185&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/id.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/id.c Mon Aug 17 00:04:40 2015
@@ -610,10 +610,12 @@ svn_fs_fs__id_serialize(svn_temp_seriali
   if (id == NULL)
     return;
 
-  /* serialize the id data struct itself */
+  /* Serialize the id data struct itself.
+   * Note that the structure behind IN is actually larger than a mere
+   * svn_fs_id_t . */
   svn_temp_serializer__add_leaf(context,
                                 (const void * const *)in,
-                                sizeof(**in));
+                                sizeof(fs_fs__id_t));
 }
 
 /* Deserialize an ID inside the BUFFER.