mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 13:23:08 +02:00
FS: Inherited fixes from Taskserver
This commit is contained in:
parent
5666feaab9
commit
6ceca1d424
1 changed files with 2 additions and 2 deletions
|
@ -520,7 +520,7 @@ void File::append (const std::string& line)
|
|||
if (_fh)
|
||||
{
|
||||
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);
|
||||
for (auto& line : lines)
|
||||
fputs (line.c_str (), _fh);
|
||||
fputs ((line + "\n").c_str (), _fh);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue