fix read ini file bugs

This commit is contained in:
zhangsheng 2024-11-12 20:08:31 +08:00
parent a36142bcf8
commit 33b4548def

View File

@ -1515,7 +1515,7 @@ int writeStringVlaue(const char *section, const char *key, char *val, const char
}
memset(sect, 0, SECTION_MAX_LEN);
sprintf(sect, "[%s]", section);
IniWriteValue(section, key, val, file);
IniWriteValue(sect, key, val, file);
return 0;
}