diff --git a/src/base/net/stratum/DaemonClient.cpp b/src/base/net/stratum/DaemonClient.cpp index a27f9d826..c54596826 100644 --- a/src/base/net/stratum/DaemonClient.cpp +++ b/src/base/net/stratum/DaemonClient.cpp @@ -271,8 +271,9 @@ bool xmrig::DaemonClient::parseJob(const rapidjson::Value ¶ms, int *code) if (m_apiVersion == API_DERO) { // Truncate to 32 bytes to have the same data as in get_info RPC - if (m_prevHash.size() > 64) + if (m_prevHash.size() > 64) { m_prevHash.data()[64] = '\0'; + } } if (m_state == ConnectingState) {