subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1591018 - /subversion/trunk/subversion/libsvn_fs_fs/cached_data.c
Date Tue, 29 Apr 2014 16:27:53 GMT
Author: stefan2
Date: Tue Apr 29 16:27:53 2014
New Revision: 1591018

URL: http://svn.apache.org/r1591018
Log:
Follow-up to r1591005: Fix the windows build.

* subversion/libsvn_fs_fs/cached_data.c
  (get_fulltext_partial): We can't do pointer arithmetics with void*.

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/cached_data.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/cached_data.c?rev=1591018&r1=1591017&r2=1591018&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/cached_data.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/cached_data.c Tue Apr 29 16:27:53 2014
@@ -1762,7 +1762,8 @@ get_fulltext_partial(void **out,
   fulltext_baton->read = MIN(fulltext_len - start, fulltext_baton->len);
 
   /* Copy the data to the output buffer and be done. */
-  memcpy(fulltext_baton->buffer, data + start, fulltext_baton->read);
+  memcpy(fulltext_baton->buffer, (const char *)data + start,
+         fulltext_baton->read);
 
   return SVN_NO_ERROR;
 }



Mime
View raw message