FS: Inherited fixes from Taskserver

This commit is contained in:
Paul Beckingham 2016-02-20 23:44:20 -05:00
parent 5666feaab9
commit 6ceca1d424

View file

@ -520,7 +520,7 @@ void File::append (const std::string& line)
if (_fh) if (_fh)
{ {
fseek (_fh, 0, SEEK_END); fseek (_fh, 0, SEEK_END);
fputs (line.c_str (), _fh); fputs ((line + "\n").c_str (), _fh);
} }
} }
@ -535,7 +535,7 @@ void File::append (const std::vector <std::string>& lines)
{ {
fseek (_fh, 0, SEEK_END); fseek (_fh, 0, SEEK_END);
for (auto& line : lines) for (auto& line : lines)
fputs (line.c_str (), _fh); fputs ((line + "\n").c_str (), _fh);
} }
} }