diff options
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/initramfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c index 6da0929..5b31bf9 100644 --- a/sys/fs/initramfs.c +++ b/sys/fs/initramfs.c @@ -137,12 +137,12 @@ vop_read(struct vnode *vp, char *buf, size_t count) for (size_t i = 0; i < count; ++i) { if (i >= size) { - break; + return i + 1; } buf[i] = contents[i]; } - return size; + return count; } static char * |