Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
lain.church
Yardım
Üye Ol
Giriş Yap
izaya
/
OC-PsychOS2
şunun yansıması
https://git.shadowkat.net/izaya/OC-PsychOS2.git
İzle
1
Yıldızla
1
Çatalla
0
Kod
Konular
0
Sürümler
0
Wiki
Aktivite
Kaynağa Gözat
fix edge case where io.open(whatever):read() returns nil
master
XeonSquared
10 ay önce
ebeveyn
c2bbd7d2ca
işleme
a33476cf00
1 değiştirilmiş dosya
ile
1 ekleme
ve
1 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+1
-1
lib/libmtar.lua
+ 1
- 1
lib/libmtar.lua
Dosyayı Görüntüle
@@ -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
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet