summaryrefslogtreecommitdiff
path: root/libpager/pagemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpager/pagemap.c')
-rw-r--r--libpager/pagemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpager/pagemap.c b/libpager/pagemap.c
index b8b3362c..963f6567 100644
--- a/libpager/pagemap.c
+++ b/libpager/pagemap.c
@@ -36,7 +36,7 @@ _pager_pagemap_resize (struct pager *p, vm_address_t off)
err = (newaddr == (void *) -1) ? errno : 0;
if (! err)
{
- bcopy (p->pagemap, newaddr, p->pagemapsize * sizeof (*p->pagemap));
+ memcpy (newaddr, p->pagemap, p->pagemapsize * sizeof (*p->pagemap));
munmap (p->pagemap, p->pagemapsize * sizeof (*p->pagemap));
p->pagemap = newaddr;
p->pagemapsize = newsize;