X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2Fback-bdb%2Fdbcache.c;h=35529c79231b31e5d29c047cae8f103a2b0624cb;hb=202080dfa1c69002fca45f960cfcf69dd1541f98;hp=01c0f7d1db28318ea8aed6176d0ad8d1b3b85ac1;hpb=acbb5cf689a4336af05c9f259d909d8141055bac;p=openldap diff --git a/servers/slapd/back-bdb/dbcache.c b/servers/slapd/back-bdb/dbcache.c index 01c0f7d1db..35529c7923 100644 --- a/servers/slapd/back-bdb/dbcache.c +++ b/servers/slapd/back-bdb/dbcache.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * 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 );