本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
lain.church
說明
註冊
登入
izaya
/
OC-PsychOS2
镜像来自
https://git.shadowkat.net/izaya/OC-PsychOS2.git
關注
1
收藏
1
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
fix edge case where io.open(whatever):read() returns nil
master
XeonSquared
10 月之前
父節點
c2bbd7d2ca
當前提交
a33476cf00
共有
1 個檔案被更改
,包括
1 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/libmtar.lua
+ 1
- 1
lib/libmtar.lua
查看文件
@@ -24,7 +24,7 @@ end
function mtar.iter(stream) -- table -- function -- Given buffer *stream*, returns an iterator suitable for use with *for* that returns, for each iteration, the file name, a function to read from the file, and the length of the file.
local remain = 0
local function read(n)
local rb = stream:read(math.min(n,remain))
local rb = stream:read(math.min(n,remain))
or ""
remain = remain - rb:len()
return rb
end
Write
Preview
Loading…
取消
儲存