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

Fix bug where file.ini min_dspace could be set to -1

min_dspace is an *unsigned* short, so saving 65535 (the default) was converting
the signed decimal representation when saving file.ini.
parent aa28d0c9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -614,7 +614,7 @@ BOOL write_file_cfg(scfg_t* cfg, int backup_level)
backup(inipath, backup_level, TRUE);
str_list_t ini = strListInit();
iniSetShortInt(&ini, ROOT_SECTION, "min_dspace", cfg->min_dspace, NULL);
iniSetUShortInt(&ini, ROOT_SECTION, "min_dspace", cfg->min_dspace, NULL);
iniSetShortInt(&ini, ROOT_SECTION, "max_batup", cfg->max_batup, NULL);
iniSetShortInt(&ini, ROOT_SECTION, "max_batdn", cfg->max_batdn, NULL);
iniSetShortInt(&ini, ROOT_SECTION, "max_userxfer" ,cfg->max_userxfer, NULL);
......
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