]> git.sur5r.net Git - openldap/commitdiff
#include "ldap_pvt.h", to get ldap_pvt_tls_destroy().
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 29 Apr 2003 14:42:58 +0000 (14:42 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 29 Apr 2003 14:42:58 +0000 (14:42 +0000)
Cast argument to isspace() to unsigned char.

clients/tools/ldapsearch.c

index 6577652f15fe3d5105ff793f9179bf1df0fd0615..c27528cb838fd81757b5c2c88f2c456a16a2b8bd 100644 (file)
@@ -33,6 +33,7 @@
 #include "lutil_ldap.h"
 #include "ldap_defaults.h"
 #include "ldap_log.h"
+#include "ldap_pvt.h"
 
 #include "common.h"
 
@@ -356,7 +357,8 @@ handle_private_option( int i )
                                 cvalue = cookiep;
                                 slimitp = strchr( cvalue, '/' );
                                 *slimitp++ = '\0';
-                                while ( isspace( *cookiep ) ) cookiep++;
+                                while ( isspace( (unsigned char) *cookiep ) )
+                                    cookiep++;
                                 ber_str2bv( cookiep, 0, 0, &lcup_cookie );
                                 lcup_slimit = atoi( slimitp );
 /*