diff options
Diffstat (limited to 'src/ini.cpp')
-rw-r--r-- | src/ini.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index 9df83fdc1..723b4d00b 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -283,7 +283,8 @@ bool IniFile::SaveToDisk(const char *filename) if (item->comment != NULL) fputs(item->comment, f); /* protect item->name with quotes if needed */ - if (strchr(item->name, ' ') != NULL) { + if (strchr(item->name, ' ') != NULL || + item->name[0] == '[') { fprintf(f, "\"%s\"", item->name); } else { fprintf(f, "%s", item->name); |