This commit is contained in:
Onran 2026-07-24 04:01:33 +09:00
parent f539ddf9e0
commit 19237b60dc
2 changed files with 5 additions and 5 deletions

View file

@ -54,7 +54,7 @@ function lib.write(descriptor, data)
local end_pos = pos + data_length - 1
-- size ensuring
if endPos > buf_length then
if end_pos > buf_length then
for i = buf_length + 1, end_pos do
buf[i] = 0
end