subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1296640 - /subversion/trunk/subversion/libsvn_repos/rev_hunt.c
Date Sat, 03 Mar 2012 15:30:13 GMT
Author: stefan2
Date: Sat Mar  3 15:30:12 2012
New Revision: 1296640

URL: http://svn.apache.org/viewvc?rev=1296640&view=rev
Log:
* subversion/libsvn_repos/rev_hunt.c
  (svn_repos_get_committed_info): use sizeof() instead of magic numbers

Suggested by: danielsh

Modified:
    subversion/trunk/subversion/libsvn_repos/rev_hunt.c

Modified: subversion/trunk/subversion/libsvn_repos/rev_hunt.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/rev_hunt.c?rev=1296640&r1=1296639&r2=1296640&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/rev_hunt.c (original)
+++ subversion/trunk/subversion/libsvn_repos/rev_hunt.c Sat Mar  3 15:30:12 2012
@@ -170,12 +170,12 @@ svn_repos_get_committed_info(svn_revnum_
   SVN_ERR(svn_fs_revision_proplist(&revprops, fs, *committed_rev, pool));
 
   /* Extract date and author from these revprops. */
-  committed_date_s = apr_hash_get(revprops, 
-                                  SVN_PROP_REVISION_DATE, 
-                                  8);
-  last_author_s = apr_hash_get(revprops, 
-                               SVN_PROP_REVISION_AUTHOR, 
-                               10);
+  committed_date_s = apr_hash_get(revprops,
+                                  SVN_PROP_REVISION_DATE,
+                                  sizeof(SVN_PROP_REVISION_DATE)-1);
+  last_author_s = apr_hash_get(revprops,
+                               SVN_PROP_REVISION_AUTHOR,
+                               sizeof(SVN_PROP_REVISION_AUTHOR)-1);
 
   *committed_date = committed_date_s ? committed_date_s->data : NULL;
   *last_author = last_author_s ? last_author_s->data : NULL;



Mime
View raw message