diff --git a/src/core/CommonConfig.cpp b/src/core/CommonConfig.cpp index b444537e6..726b0e37b 100644 --- a/src/core/CommonConfig.cpp +++ b/src/core/CommonConfig.cpp @@ -266,7 +266,7 @@ bool xmrig::CommonConfig::save() uv_fs_close(uv_default_loop(), &req, fd, nullptr); uv_fs_req_cleanup(&req); - LOG_NOTICE("configuration saved to: \"%s\"", m_fileName); + LOG_NOTICE("configuration saved to: \"%s\"", m_fileName.data()); return true; } diff --git a/src/core/Config.cpp b/src/core/Config.cpp index a91366608..f72112509 100644 --- a/src/core/Config.cpp +++ b/src/core/Config.cpp @@ -279,7 +279,7 @@ bool xmrig::Config::parseInt(int key, int arg) { switch (key) { case xmrig::IConfig::ThreadsKey: /* --threads */ - if (m_threadsCount >= 0 && arg < 1024) { + if (arg >= 0 && arg < 1024) { m_threadsCount = arg; } break;