diff options
Diffstat (limited to 'ext2fs/pager.c')
-rw-r--r-- | ext2fs/pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c index ae515305..a6c4fbb5 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -209,7 +209,7 @@ file_pager_read_page (struct node *node, vm_offset_t page, else /* We've already got some buffer, so copy into it. */ { - bcopy (new_buf, *buf + offs, new_len); + memcpy (*buf + offs, new_buf, new_len); free_page_buf (new_buf); /* Return NEW_BUF to our pool. */ STAT_INC (file_pagein_freed_bufs); } @@ -316,7 +316,7 @@ pending_blocks_write (struct pending_blocks *pb) /* Put what we're going to write into a page-aligned buffer. */ { void *page_buf = get_page_buf (); - bcopy (pb->buf + pb->offs, (void *)page_buf, length); + memcpy ((void *)page_buf, pb->buf + pb->offs, length); err = store_write (store, dev_block, page_buf, length, &amount); free_page_buf (page_buf); } |