Skip to content

Commit

Permalink
don't add extra newlines when downloading scripts via tpt.getscript
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Oct 23, 2015
1 parent dc679d7 commit 9a9f80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lua/LegacyLuaAPI.cpp
Expand Up @@ -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
{
Expand All @@ -1911,7 +1911,7 @@ int luatpt_getscript(lua_State* l)
}
else
{
outputfile = fopen(filename, "w");
outputfile = fopen(filename, "wb");
}
if (!outputfile)
{
Expand Down

0 comments on commit 9a9f80f

Please sign in to comment.