]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Fixed issue with binary files in windows, http://www.lua.org/pil/21.2.2.html
authormartin.holst@gmail.com <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Thu, 7 Nov 2013 11:32:13 +0000 (11:32 +0000)
committermartin.holst@gmail.com <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Thu, 7 Nov 2013 11:32:13 +0000 (11:32 +0000)
client/lualibs/html_dumplib.lua

index 66a3e03784fab7023cf8432fc9675d19b9a99319..e730920c0dbc0b142fa35e015fe30ef220cf7253 100644 (file)
@@ -107,7 +107,7 @@ local function convert_bin_to_html(input, output, blockLen)
        blockLen = blockLen or 16
        output = output or input .. 'html'
 
-       local infile = io.open(input, "r")
+       local infile = io.open(input, "rb")
        if infile == nil then 
                return oops(string.format("Could not read file %s",tostring(input)))
        end
Impressum, Datenschutz