mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
printf format paranoia: macros could be changed to contain format chars
This commit is contained in:
parent
d84399e344
commit
7372fea8b5
@ -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 );
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user