]> git.sur5r.net Git - openldap/commitdiff
strlen returns size_t not int.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 22:33:12 +0000 (22:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 22:33:12 +0000 (22:33 +0000)
libraries/libldap/string.c

index b41305da435f4df11e305a16f35ee86c1fa7768c..9952f8b7bb08924f89fb90795cffe9bf1f152151 100644 (file)
@@ -94,10 +94,10 @@ char *
 (ldap_pvt_strdup)( const char *s )
 {
        char    *p;
-       int     len = strlen( s ) + 1;
+       size_t  len = strlen( s ) + 1;
 
        if ( (p = (char *) malloc( len )) == NULL ) {
-               return( (char *)0 );
+               return( NULL );
        }
 
        memcpy( p, s, len );