diff options
Diffstat (limited to 'heap/hp_rfirst.c')
-rw-r--r-- | heap/hp_rfirst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_rfirst.c b/heap/hp_rfirst.c index 390d18fc58f..654874d5c8d 100644 --- a/heap/hp_rfirst.c +++ b/heap/hp_rfirst.c @@ -31,7 +31,7 @@ int heap_rfirst(HP_INFO *info, byte *record, int inx) if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents, &info->last_pos, offsetof(TREE_ELEMENT, left)))) { - memcpy(&pos, pos + keyinfo->ref_offs, sizeof(byte*)); + memcpy(&pos, pos + hp_rb_key_length(keyinfo, pos), sizeof(byte*)); info->current_ptr = pos; memcpy(record, pos, (size_t)share->reclength); info->update = HA_STATE_AKTIV; |