mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Fix
This commit is contained in:
parent
a6643b2c33
commit
efdcdb88fa
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user