X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fstring.c;h=df8069ccaabe80c4e9da084decf7e1db1f711032;hb=d2b05a3858822df66785b4a0939204b10ac1c47f;hp=def6fce9faa0aaabd5e75e30c6f4c2f7d141860f;hpb=42cc5e5333c36b1bd7ab250dac3a1a54ec3c439a;p=openldap diff --git a/libraries/libldap/string.c b/libraries/libldap/string.c index def6fce9fa..df8069ccaa 100644 --- a/libraries/libldap/string.c +++ b/libraries/libldap/string.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -97,20 +97,6 @@ char *(ldap_pvt_strtok)( char *str, const char *delim, char **pos ) return str; } -char * -(ldap_pvt_strdup)( const char *s ) -{ - char *p; - size_t len = strlen( s ) + 1; - - if ( (p = (char *) malloc( len )) == NULL ) { - return( NULL ); - } - - memcpy( p, s, len ); - return( p ); -} - char * ldap_pvt_str2upper( char *str ) {