mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
Fix buffer size in generateMinerSignature
This commit is contained in:
parent
a136790bee
commit
93e689d601
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ void xmrig::Job::move(Job &&other)
|
||||||
|
|
||||||
void xmrig::Job::generateMinerSignature(uint64_t data, uint8_t* sig) const
|
void xmrig::Job::generateMinerSignature(uint64_t data, uint8_t* sig) const
|
||||||
{
|
{
|
||||||
uint8_t sig_data[16];
|
uint8_t sig_data[32];
|
||||||
int k = sizeof(sig_data);
|
int k = sizeof(sig_data);
|
||||||
do {
|
do {
|
||||||
sig_data[--k] = "0123456789"[data % 10];
|
sig_data[--k] = "0123456789"[data % 10];
|
||||||
|
|
Loading…
Reference in a new issue