aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c
index 897a3d4..00d1020 100644
--- a/sys/fs/initramfs.c
+++ b/sys/fs/initramfs.c
@@ -140,7 +140,7 @@ vop_read(struct vnode *vp, struct sio_txn *sio)
if (i >= size) {
return i + 1;
}
- buf[i] = contents[i];
+ buf[i - sio->offset] = contents[i];
}
return sio->len;