mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibCore: Set file offset in ConfigFile::sync
This commit is contained in:
parent
fe09f85414
commit
a501b903b5
Notes:
sideshowbarker
2024-07-18 05:19:19 +09:00
Author: https://github.com/doctor-rd
Commit: a501b903b5
Pull-request: https://github.com/SerenityOS/serenity/pull/9590
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
Add a link
Reference in a new issue