# HG changeset patch # User Matthew Wild # Date 1257304962 0 # Node ID 7f619444bc2a1a50788462c77c27a9435b51f1a5 # Parent 475bf0c54822758418de92b35e2f9d3239a79db2 Fix wrong variable name preventing saving to filename diff -r 475bf0c54822 -r 7f619444bc2a xpm.lua --- 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);