--- hfsplus-1.0.4/libhfsp/src/record.c~ 2002-03-17 17:20:01.000000000 +0000 +++ hfsplus-1.0.4/libhfsp/src/record.c 2007-08-22 14:31:26.000000000 +0100 @@ -654,7 +654,7 @@ int record_init_string(record* r, UInt16 hfsp_cat_entry* entry = &r->record; UInt16 ptype = parent->record.type; - memset(r, sizeof(record), 0); // **** Debugging only + memset(r, 0, sizeof(record)); // **** Debugging only r->tree = parent->tree; r->node_index = 0;