Il sito funziona meglio con JavaScript.
Home
Esplora
lain.church
Aiuto
Registrati
Accedi
izaya
/
OC-PsychOS2
mirror da
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Segui
1
Vota
1
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
fix edge case where io.open(whatever):read() returns nil
master
XeonSquared
10 mesi fa
parent
c2bbd7d2ca
commit
a33476cf00
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/libmtar.lua
+ 1
- 1
lib/libmtar.lua
Vedi File
@@ -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…
Annulla
Salva