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 2013/07/30 15:56:51 UTC
svn commit: r1508444 -
/subversion/branches/fsx/subversion/libsvn_subr/prefix_string.c
Author: stefan2
Date: Tue Jul 30 13:56:50 2013
New Revision: 1508444
URL: http://svn.apache.org/r1508444
Log:
On the fsx branch: Fix a bug in svn_prefix_string__expand detected
by the new test code.
* subversion/libsvn_subr/prefix_string.c
(svn_prefix_string__expand): actually copy data into the target buffer
Modified:
subversion/branches/fsx/subversion/libsvn_subr/prefix_string.c
Modified: subversion/branches/fsx/subversion/libsvn_subr/prefix_string.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsx/subversion/libsvn_subr/prefix_string.c?rev=1508444&r1=1508443&r2=1508444&view=diff
==============================================================================
--- subversion/branches/fsx/subversion/libsvn_subr/prefix_string.c (original)
+++ subversion/branches/fsx/subversion/libsvn_subr/prefix_string.c Tue Jul 30 13:56:50 2013
@@ -274,7 +274,7 @@ svn_prefix_string__expand(const svn_pref
while (s->prefix)
{
- memcpy(result + s->prefix->length, s->data, len - s->prefix->length);
+ memcpy(buffer + s->prefix->length, s->data, len - s->prefix->length);
len = s->prefix->length;
s = &s->prefix->key;
}