Commit caeae756 authored by Howard Chu's avatar Howard Chu
Browse files

bdb_show_key is for hash keys, not IDs

parent 0cf2e874
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment