Permalink
Browse files

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

  • Loading branch information...
jacob1 committed Oct 23, 2015
1 parent dc679d7 commit 9a9f80fefacd8a93cc44b4622ce55c6583545970
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lua/LegacyLuaAPI.cpp
@@ -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)
{

0 comments on commit 9a9f80f

Please sign in to comment.