]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/sanity.c
LDAP_SASL_INTERACTIVE -> LDAP_SASL_QUIET
[openldap] / servers / slurpd / sanity.c
index 1cf266943228c747f4cf9c133834227c03386743..0927e597f2982b8986231bfe63cfc6c85edd4a57 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /*
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 
+#include <ac/stdlib.h>
 #include <ac/unistd.h>
 #include <ac/string.h>
 
@@ -184,8 +185,8 @@ filecheck(
     char               *p;
     unsigned int       ret = 0;
 
-    strcpy( dir, f );
-    p = strrchr( dir, '/' );
+       snprintf( dir, sizeof dir, "%s", f );
+    p = strrchr( dir, LDAP_DIRSEP[0] );
     if ( p != NULL ) {
        *p = '\0';
     }