]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/friendly.c
ITS#897 Internal connection that is closed on one end and about to
[openldap] / libraries / libldap / friendly.c
index d88052a1fd11783ae331a93f9148ae6b83a9afc6..5d4abdabbe22cd60700352bcbbd3ca7b11095c03 100644 (file)
@@ -1,5 +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
  */
 /*  Portions
@@ -12,9 +13,8 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
+#include <ac/stdlib.h>
 
-#include <ac/ctype.h>
 #include <ac/errno.h>
 #include <ac/socket.h>
 #include <ac/string.h>
@@ -86,8 +86,8 @@ ldap_friendly_name(
                                }
                        }
 
-                       (*map)[i].lf_unfriendly = strdup( buf );
-                       (*map)[i].lf_friendly   = strdup( s );
+                       (*map)[i].lf_unfriendly = LDAP_STRDUP( buf );
+                       (*map)[i].lf_friendly   = LDAP_STRDUP( s );
                        i++;
                }