summaryrefslogtreecommitdiff
path: root/vm/vm_phys.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_phys.c')
-rw-r--r--vm/vm_phys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_phys.c b/vm/vm_phys.c
index 9fcc7cc9..64a3cb61 100644
--- a/vm/vm_phys.c
+++ b/vm/vm_phys.c
@@ -478,7 +478,7 @@ vm_phys_load(const char *name, phys_addr_t start, phys_addr_t end,
list_insert_tail(seg_list, &seg->node);
seg->start = start;
seg->end = end;
- strcpy(seg->name, name); /* TODO: strlcpy */
+ strlcpy(seg->name, name, sizeof(seg->name));
boot_seg->avail_start = avail_start;
boot_seg->avail_end = avail_end;