diff --git a/src/86box.c b/src/86box.c index bac26ceb7..9d0d95a70 100644 --- a/src/86box.c +++ b/src/86box.c @@ -1105,7 +1105,7 @@ usage: /* -E specified on the command line. */ start_vmm = 1; } else { - strncpy(vmm_path, vmm_path_cfg, sizeof(vmm_path) - 1) + strncpy(vmm_path, vmm_path_cfg, sizeof(vmm_path) - 1); } if (start_vmm) { diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index 8d0732dee..fb37e7507 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -697,7 +697,8 @@ plat_get_temp_dir(char *outbuf, const uint8_t len) void plat_get_vmm_dir(char *outbuf, const size_t len) { - const auto dir = QDir(QDir::home().filePath("86Box VMs")); + auto dir = QDir::home(); + dir.setPath("86Box VMs"); if (!dir.exists()) { if (!dir.mkpath(".")) {