printf format paranoia: macros could be changed to contain format chars

This commit is contained in:
Hallvard Furuseth 2007-05-18 14:48:28 +00:00
parent d84399e344
commit 7372fea8b5
2 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -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