Skip to content
Snippets Groups Projects
Commit 7b415224 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If we use iniSetBytes() to write a setting, we must use iniGetBytes() to read it

parent f43bba2c
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ BOOL read_main_cfg(scfg_t* cfg, char* error, size_t maxerrlen)
cfg->min_pwlen = MIN_PASS_LEN;
if(cfg->min_pwlen > LEN_PASS)
cfg->min_pwlen = LEN_PASS;
cfg->max_log_size = iniGetUInt32(ini, ROOT_SECTION, "max_log_size", 0);
cfg->max_log_size = (uint32_t)iniGetBytes(ini, ROOT_SECTION, "max_log_size", 1, 0);
cfg->max_logs_kept = iniGetUInt16(ini, ROOT_SECTION, "max_logs_kept", 0);
cfg->ctrlkey_passthru = iniGetInteger(ini, ROOT_SECTION, "ctrlkey_passthru", 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment