From 1e520365855c182bb72800e5f587142a449a3153 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 21 Mar 2026 10:56:32 +0000 Subject: [PATCH] bootstrap: tar: use the nr_written value returned by xpc_buffer_write to increment the file cursor --- sys/bootstrap/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/bootstrap/tar.c b/sys/bootstrap/tar.c index 7be6544..f447404 100644 --- a/sys/bootstrap/tar.c +++ b/sys/bootstrap/tar.c @@ -191,7 +191,7 @@ static enum fs_status file_read( size_t w; xpc_buffer_write(buf, src, count, &w); - offset += count; + offset += w; *seek = offset; return FS_SUCCESS;