]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/dsparse.c
All implementations of lutil_lockf (aka ldap_lockf) block until
[openldap] / libraries / libldap / dsparse.c
index 139d9a610ed8d339a7d11465239cc9311bd52dc1..9e1f1fbdcd855f6af2320e1695c809bbd6a1f6b2 100644 (file)
@@ -155,7 +155,7 @@ next_token( char **sp )
 
     p = *sp;
 
-    while ( isspace( *p )) {           /* skip leading white space */
+    while ( isspace( (unsigned char) *p )) {   /* skip leading white space */
        ++p;
     }
 
@@ -170,7 +170,7 @@ next_token( char **sp )
     t = tokstart = p;
 
     for ( ;; ) {
-       if ( *p == '\0' || ( isspace( *p ) && !in_quote )) {
+       if ( *p == '\0' || ( isspace( (unsigned char) *p ) && !in_quote )) {
            if ( *p != '\0' ) {
                ++p;
            }