diff options
| author | 2025-09-17 08:11:41 +0200 | |
|---|---|---|
| committer | 2025-09-17 08:11:41 +0200 | |
| commit | 3d0c49f4eb9e13e00bf12940b53da0f018c0a58c (patch) | |
| tree | ba68727c6320d353ef63eb511617f4fa38e8ab10 | |
| parent | 9be3aba26cf78adcfee9a86d23352ca6eda55cc0 (diff) | |
io.c errata non reg files
| -rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |