--- a/xpm.lua Wed Nov 04 02:18:39 2009 +0000+++ b/xpm.lua Wed Nov 04 03:22:42 2009 +0000@@ -29,7 +29,7 @@ function render(xpm, f) local err; if type(f) == "string" then- f = io.open(out, "w+");+ f = io.open(f, "w+"); end if io.type(f) ~= "file" then error("No valid output file", 2);