diff options
Diffstat (limited to 'heap/hp_rkey.c')
-rw-r--r-- | heap/hp_rkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_rkey.c b/heap/hp_rkey.c index 649370cf0b0..502e97e2f06 100644 --- a/heap/hp_rkey.c +++ b/heap/hp_rkey.c @@ -55,7 +55,7 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key, info->update = 0; DBUG_RETURN(my_errno = HA_ERR_KEY_NOT_FOUND); } - memcpy(&pos, pos + keyinfo->ref_offs, sizeof(byte*)); + memcpy(&pos, pos + hp_rb_key_length(keyinfo, pos), sizeof(byte*)); info->current_ptr = pos; } else |