From: Kurt Zeilenga Date: Thu, 27 May 1999 22:33:12 +0000 (+0000) Subject: strlen returns size_t not int. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~504 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f90277edc551faa43059bf17c707ad7c1d1b91d6;p=openldap strlen returns size_t not int. --- diff --git a/libraries/libldap/string.c b/libraries/libldap/string.c index b41305da43..9952f8b7bb 100644 --- a/libraries/libldap/string.c +++ b/libraries/libldap/string.c @@ -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 );