Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
lain.church
Aide
S'inscrire
Connexion
izaya
/
OC-PsychOS2
miroir de
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Suivre
1
Ajouter aux favoris
1
Bifurcation
0
Code
Tickets
0
Versions
0
Wiki
Activité
Parcourir la source
fix edge case where io.open(whatever):read() returns nil
master
XeonSquared
il y a 10 mois
Parent
c2bbd7d2ca
révision
a33476cf00
1 fichiers modifiés
avec
1 ajouts
et
1 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+1
-1
lib/libmtar.lua
+ 1
- 1
lib/libmtar.lua
Voir le fichier
@@ -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
Écrire
Aperçu
Chargement…
Annuler
Enregistrer