From 3d0c49f4eb9e13e00bf12940b53da0f018c0a58c Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 17 Sep 2025 08:11:41 +0200 Subject: io.c errata non reg files --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') 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) -- cgit v1.2.3