]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/utils.c
remove const from salt_format
[openldap] / libraries / liblutil / utils.c
index 8bd298facfceadf7632c1da70d39c4eb82fa6a92..ad597621ab91089b4409b00fd62eae14e75c60ae 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
  */
 
@@ -8,6 +9,7 @@
 #include <ac/stdlib.h>
 #include <ac/string.h>
 
+#include <lber.h>
 #include <lutil.h>
 #include <ldap_defaults.h>
 
@@ -16,11 +18,11 @@ char* lutil_progname( const char* name, int argc, char *argv[] )
        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;
 }