]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/getfilter.c
Cast char* argument to hh_to_c() to Byte*
[openldap] / libraries / libldap / getfilter.c
index 5be8726f6406daf7f4277191f510b2b1687148b8..d69ff0e9e881f17e3c1443a87c2105dbe9d6c583 100644 (file)
@@ -331,12 +331,12 @@ ldap_build_filter( char *filtbuf, unsigned long buflen, char *pattern,
            if ( *p == '%' ) {
                ++p;
                if ( *p == 'v' ) {
-                   if ( isdigit( *(p+1))) {
+                   if ( isdigit( (unsigned char) p[1] )) {
                        ++p;
                        wordnum = *p - '1';
                        if ( *(p+1) == '-' ) {
                            ++p;
-                           if ( isdigit( *(p+1))) {
+                           if ( isdigit( (unsigned char) p[1] )) {
                                ++p;
                                endwordnum = *p - '1';  /* e.g., "%v2-4" */
                                if ( endwordnum > wordcount - 1 ) {