From 15bca17e94509689a3bcc4bb526a9bc3a655398e Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 2 Aug 2020 19:02:56 +0200 Subject: [PATCH] Fix to the MOD type reading and writing in config.c. --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 252aab1d9..8e23cb3a8 100644 --- a/src/config.c +++ b/src/config.c @@ -1432,9 +1432,9 @@ load_other_removable_devices(void) sprintf(temp, "mo_%02i_parameters", c+1); p = config_get_string(cat, temp, NULL); if (p != NULL) - sscanf(p, "%01u, %s", &mo_drives[c].type, s); + sscanf(p, "%u, %s", &mo_drives[c].type, s); else - sscanf("0, none", "%01u, %s", &mo_drives[c].type, s); + sscanf("00, none", "%u, %s", &mo_drives[c].type, s); mo_drives[c].bus_type = hdd_string_to_bus(s, 1); /* Default values, needed for proper operation of the Settings dialog. */