This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
OC-PsychOS2
mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
made libmtar cope with lower memory systems at the expense of speed
master
XeonSquared
3 years ago
parent
5db20adefd
commit
8865768576
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
lib/libmtar.lua
+ 3
- 1
lib/libmtar.lua
View File
@@ -43,7 +43,9 @@ function mtar.iter(stream) -- table -- function -- Given buffer *stream*, return
return rb
end
return function()
stream:read(remain)
while remain > 0 do
remain=remain-#stream:read(math.min(remain,2048))
end
local nlen = toint(stream:read(2) or "\0\0")
if nlen == 0 then
return
Write
Preview
Loading…
Cancel
Save