/* $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
*/
#include <ac/stdlib.h>
#include <ac/string.h>
+#include <lber.h>
#include <lutil.h>
#include <ldap_defaults.h>
char *progname;
if(argc == 0) {
- return strdup( name );
+ return ber_strdup( name );
}
progname = strrchr ( argv[0], *LDAP_DIRSEP );
- progname = strdup( progname ? &progname[1] : argv[0] );
+ progname = ber_strdup( progname ? &progname[1] : argv[0] );
return progname;
}