don't add extra newlines when downloading scripts via tpt.getscript

This commit is contained in:
jacob1 2015-10-23 00:18:41 -04:00
parent dc679d7eb0
commit 9a9f80fefa

View File

@ -1901,7 +1901,7 @@ int luatpt_getscript(lua_State* l)
outputfile = NULL;
if (!confirmPrompt || ConfirmPrompt::Blocking("File already exists, overwrite?", filename, "Overwrite"))
{
outputfile = fopen(filename, "w");
outputfile = fopen(filename, "wb");
}
else
{
@ -1911,7 +1911,7 @@ int luatpt_getscript(lua_State* l)
}
else
{
outputfile = fopen(filename, "w");
outputfile = fopen(filename, "wb");
}
if (!outputfile)
{