You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2009/06/02 17:35:13 UTC

svn commit: r781065 - /apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c

Author: wrowe
Date: Tue Jun  2 15:35:13 2009
New Revision: 781065

URL: http://svn.apache.org/viewvc?rev=781065&view=rev
Log:
Fix pattern matching for 'signed' tolower() platforms, noted by rpluem

Modified:
    apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c

Modified: apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c?rev=781065&r1=781064&r2=781065&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c (original)
+++ apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c Tue Jun  2 15:35:13 2009
@@ -74,7 +74,7 @@
             }
             s_tmp--;
         }
-        s_next += shift[apr_tolower(*s_next)];
+        s_next += shift[(unsigned char)apr_tolower(*s_next)];
     }
     return NULL;
 }