bdb_show_key is for hash keys, not IDs

This commit is contained in:
Howard Chu 2005-02-20 04:32:54 +00:00
parent 0cf2e8746e
commit caeae75662

View file

@ -271,7 +271,7 @@ bdb_show_key(
DBT *key,
char *buf )
{
if ( key->size == sizeof( ID ) ) {
if ( key->size == 4 /* LUTIL_HASH_BYTES */ ) {
unsigned char *c = key->data;
sprintf( buf, "[%02x%02x%02x%02x]", c[0], c[1], c[2], c[3] );
return buf;