Skip to content
Snippets Groups Projects
Commit f90277ed authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

strlen returns size_t not int.

parent 8c793fa1
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment