This commit is contained in:
Konstantin Vukolov 2026-01-22 22:50:21 +03:00
parent a6643b2c33
commit efdcdb88fa

View File

@ -121,13 +121,13 @@ bool CrossPointSettings::loadFromFile() {
if (++settingsRead >= fileSettingsCount) break; if (++settingsRead >= fileSettingsCount) break;
serialization::readPod(inputFile, hyphenationEnabled); serialization::readPod(inputFile, hyphenationEnabled);
if (++settingsRead >= fileSettingsCount) break; if (++settingsRead >= fileSettingsCount) break;
if (++settingsRead >= fileSettingsCount) break;
{ {
std::string urlPath; std::string urlPath;
serialization::readString(inputFile, urlPath); serialization::readString(inputFile, urlPath);
strncpy(opdsPath, urlPath.c_str(), sizeof(opdsPath) - 1); strncpy(opdsPath, urlPath.c_str(), sizeof(opdsPath) - 1);
opdsPath[sizeof(opdsPath) - 1] = '\0'; opdsPath[sizeof(opdsPath) - 1] = '\0';
} }
if (++settingsRead >= fileSettingsCount) break;
} while (false); } while (false);
inputFile.close(); inputFile.close();