You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/06/26 16:54:11 UTC

svn commit: r1605804 - /subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c

Author: breser
Date: Thu Jun 26 14:54:10 2014
New Revision: 1605804

URL: http://svn.apache.org/r1605804
Log:
On svn-auth-x509 branch, cast to avoid sign mistmatch warning.

* subversion/libsvn_subr/x509parse.c:
  (svn_x509_parse_cert): Cast buf to unsigned before doing arithmetic with it.

Modified:
    subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c

Modified: subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
URL: http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c?rev=1605804&r1=1605803&r2=1605804&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c (original)
+++ subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c Thu Jun 26 14:54:10 2014
@@ -720,7 +720,7 @@ svn_x509_parse_cert(apr_hash_t **certinf
     return svn_error_create(SVN_ERR_ASN1_LENGTH_MISMATCH, err, NULL);
   }
 
-  end = buf + buflen;
+  end = (const unsigned char*) buf + buflen;
 
   /*
    *      signatureAlgorithm       AlgorithmIdentifier,