From f90277edc551faa43059bf17c707ad7c1d1b91d6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 27 May 1999 22:33:12 +0000 Subject: [PATCH] strlen returns size_t not int. --- libraries/libldap/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5