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 2012/12/28 01:09:19 UTC
svn commit: r1426370 -
/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c
Author: stefan2
Date: Fri Dec 28 00:09:18 2012
New Revision: 1426370
URL: http://svn.apache.org/viewvc?rev=1426370&view=rev
Log:
On the fsfs-format7 branch: fix memory allocation
* subversion/libsvn_fs_fs/low_level.c
(svn_fs_fs__read_rep_header): allocate the size of the actual struct
Modified:
subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c
Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c?rev=1426370&r1=1426369&r2=1426370&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c Fri Dec 28 00:09:18 2012
@@ -602,7 +602,7 @@ svn_fs_fs__read_rep_header(svn_fs_fs__re
SVN_ERR(svn_stream_readline(stream, &buffer, "\n", &eol, pool));
- *header = apr_pcalloc(pool, sizeof(*header));
+ *header = apr_pcalloc(pool, sizeof(**header));
if (strcmp(buffer->data, REP_PLAIN) == 0)
return SVN_NO_ERROR;