mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
strlen returns size_t not int.
This commit is contained in:
parent
8c793fa1c9
commit
f90277edc5
1 changed files with 2 additions and 2 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue