summaryrefslogtreecommitdiff
path: root/storage/innobase/mem/mem0mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/mem/mem0mem.c')
-rw-r--r--storage/innobase/mem/mem0mem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/innobase/mem/mem0mem.c b/storage/innobase/mem/mem0mem.c
index 85f0119d02a..daf78008d45 100644
--- a/storage/innobase/mem/mem0mem.c
+++ b/storage/innobase/mem/mem0mem.c
@@ -187,9 +187,7 @@ mem_heap_create_block(
}
block->magic_n = MEM_BLOCK_MAGIC_N;
- ut_memcpy(&(block->file_name), file_name + ut_strlen(file_name) - 7,
- 7);
- block->file_name[7]='\0';
+ ut_strlcpy_rev(block->file_name, file_name, sizeof(block->file_name));
block->line = line;
#ifdef MEM_PERIODIC_CHECK