This commit is contained in:
JoowonYun 2018-05-07 13:55:57 +00:00 committed by GitHub
commit 957349a041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,12 +168,14 @@ int64_t Client::submit(const JobResult &result)
const char *nonce = result.nonce;
const char *data = result.result;
# else
char *nonce = m_sendBuf;
char *data = m_sendBuf + 16;
char nonce[9];
char data[65];
memset(nonce, 0, 9);
Job::toHex(reinterpret_cast<const unsigned char*>(&result.nonce), 4, nonce);
nonce[8] = '\0';
memset(data, 0, 65);
Job::toHex(result.result, 32, data);
data[64] = '\0';
# endif