aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-09-17 08:11:41 +0200
committerlemon <lsof@mailbox.org>2025-09-17 08:11:41 +0200
commit3d0c49f4eb9e13e00bf12940b53da0f018c0a58c (patch)
treeba68727c6320d353ef63eb511617f4fa38e8ab10 /io.c
parent9be3aba26cf78adcfee9a86d23352ca6eda55cc0 (diff)
io.c errata non reg files
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index b715d51..592cf48 100644
--- a/io.c
+++ b/io.c
@@ -662,7 +662,7 @@ mapopen(const char **err, const char *path)
goto Err;
}
p = (void *)f.p;
- ret = read(fd, p, CHUNKSIZ);
+ ret = read(fd, (char *)p + f.n, CHUNKSIZ);
if (ret >= 0)
f.n += ret;
else if (errno != EAGAIN && errno != EWOULDBLOCK)