summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm.lua b/pm.lua
index c710769..abeb056 100644
--- a/pm.lua
+++ b/pm.lua
@@ -95,7 +95,7 @@ local function dlfile(filename)
print("creating directory "..dir)
fs.makeDir(dir)
end
- local file,err=fs.open(dest,"w")
+ local file,err=fs.open(dest,"wb")
if err then error("fs.open "..err) end
local res,err = http.get{url=src,binary=true}
if err then error("http.get "..err) end