mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
LibCore: Set file offset in ConfigFile::sync
This commit is contained in:
parent
fe09f85414
commit
a501b903b5
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ bool ConfigFile::sync()
|
|||
return true;
|
||||
|
||||
m_file->truncate(0);
|
||||
m_file->seek(0);
|
||||
|
||||
for (auto& it : m_groups) {
|
||||
m_file->write(String::formatted("[{}]\n", it.key));
|
||||
|
|
Loading…
Add table
Reference in a new issue