From 7372fea8b516ebe04e0ce3089ddcf8dd9cbe6855 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 18 May 2007 14:48:28 +0000 Subject: [PATCH] printf format paranoia: macros could be changed to contain format chars --- servers/slapd/back-bdb/dbcache.c | 2 +- servers/slapd/sasl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/dbcache.c b/servers/slapd/back-bdb/dbcache.c index 42f9f8b883..35529c7923 100644 --- a/servers/slapd/back-bdb/dbcache.c +++ b/servers/slapd/back-bdb/dbcache.c @@ -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 ); diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index cf952291bf..e08400462f 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1210,8 +1210,8 @@ int slap_sasl_init( void ) sprintf( version, "%u.%d.%d", (unsigned)rc >> 24, (rc >> 16) & 0xff, rc & 0xffff ); Debug( LDAP_DEBUG_ANY, "slap_sasl_init: SASL library version mismatch:" - " expected " SASL_VERSION_STRING "," - " got %s\n", version, 0, 0 ); + " expected %s, got %s\n", + SASL_VERSION_STRING, version, 0 ); return -1; } #endif -- 2.39.5