subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1373881 - /subversion/trunk/subversion/libsvn_subr/sysinfo.c
Date Thu, 16 Aug 2012 15:32:12 GMT
Author: brane
Date: Thu Aug 16 15:32:12 2012
New Revision: 1373881

URL: http://svn.apache.org/viewvc?rev=1373881&view=rev
Log:
Fix thinko in uname-based canonical host generation.

* subversion/libsvn-subr/sysinfo.c (canonical_host_from_uname):
  Use strspn, not strcspn.

Modified:
    subversion/trunk/subversion/libsvn_subr/sysinfo.c

Modified: subversion/trunk/subversion/libsvn_subr/sysinfo.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/sysinfo.c?rev=1373881&r1=1373880&r2=1373881&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/sysinfo.c (original)
+++ subversion/trunk/subversion/libsvn_subr/sysinfo.c Thu Aug 16 15:32:12 2012
@@ -156,7 +156,7 @@ canonical_host_from_uname(apr_pool_t *po
             svn_error_clear(err);
           else
             {
-              apr_size_t n = strcspn(tmp, ".0123456789");
+              apr_size_t n = strspn(tmp, ".0123456789");
               if (n > 0)
                 {
                   char *ver = apr_pstrdup(pool, tmp);



Mime
View raw message