You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2011/08/17 22:18:20 UTC
svn commit: r1158893 - /subversion/trunk/subversion/libsvn_ra_serf/blame.c
Author: rhuijben
Date: Wed Aug 17 20:18:20 2011
New Revision: 1158893
URL: http://svn.apache.org/viewvc?rev=1158893&view=rev
Log:
In serf's svn_ra_get_file_revs provide the real revision property values to
the callback instead of the property value + '\0'.
(The svn_string_t has it's own '\0' to make it a valid c string).
Found by using annotate in AnkhSVN. (SharpSvn notes that the property value
contains a '\0' before the end of the value and therefore assumes that the
string isn't utf-8)
* subversion/libsvn_ra_serf/blame.c
(create_propval): Don't include the '\0' in the real data of svn_string_t as
that isn't really part of the value.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/blame.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/blame.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/blame.c?rev=1158893&r1=1158892&r2=1158893&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/blame.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/blame.c Wed Aug 17 20:18:20 2011
@@ -159,8 +159,7 @@ create_propval(blame_info_t *info)
info->prop_attr_len + 1);
}
- /* Include the null term. */
- s = svn_string_ncreate(info->prop_attr, info->prop_attr_len + 1, info->pool);
+ s = svn_string_ncreate(info->prop_attr, info->prop_attr_len, info->pool);
if (info->prop_base64)
{
s = svn_base64_decode_string(s, info->pool);