]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/dbcache.c
enable unindexed searches monitoring ifdef LDAP_DEVEL
[openldap] / servers / slapd / back-bdb / dbcache.c
index 01c0f7d1db28318ea8aed6176d0ad8d1b3b85ac1..35529c79231b31e5d29c047cae8f103a2b0624cb 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2006 The OpenLDAP Foundation.
+ * Copyright 2000-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -114,7 +114,7 @@ bdb_db_cache(
        rc = db->bdi_db->set_flags( db->bdi_db, DB_DUP | DB_DUPSORT );
 
        file = ch_malloc( strlen( name ) + sizeof(BDB_SUFFIX) );
-       sprintf( file, "%s" BDB_SUFFIX, name );
+       sprintf( file, "%s%s", name, BDB_SUFFIX );
 
 #ifdef HAVE_EBCDIC
        __atoe( file );