strlen returns size_t not int.

This commit is contained in:
Kurt Zeilenga 1999-05-27 22:33:12 +00:00
parent 8c793fa1c9
commit f90277edc5

View 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 );