diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2021-11-26 19:33:42 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-26 14:35:46 -0800 |
| commit | b196dd1d7958aee86095bd06190eee484a562488 (patch) | |
| tree | 43265d5c3ef346f57a041c107b9529880d4cac53 /src | |
| parent | 7c2cc45ad87b621831ac4b8cada809c2d88cdf0d (diff) | |
| download | zig-b196dd1d7958aee86095bd06190eee484a562488.tar.gz zig-b196dd1d7958aee86095bd06190eee484a562488.zip | |
std.system: fix slice bounds in preadMin()
If a partial read occurs past the halfway point, buf.len - i will be
less than i, which is illegal. The end bound is also entirely unecessary
in this case, so just remove it.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
