mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-09 20:21:01 +00:00
driver-ztex: use the correct size for the swap array
This commit is contained in:
parent
7c01f16593
commit
abae6b983a
@ -151,7 +151,7 @@ static bool ztex_checkNonce(struct libztex_device *ztex,
|
|||||||
struct libztex_hash_data *hdata)
|
struct libztex_hash_data *hdata)
|
||||||
{
|
{
|
||||||
uint32_t *data32 = (uint32_t *)(work->data);
|
uint32_t *data32 = (uint32_t *)(work->data);
|
||||||
unsigned char swap[128];
|
unsigned char swap[80];
|
||||||
uint32_t *swap32 = (uint32_t *)swap;
|
uint32_t *swap32 = (uint32_t *)swap;
|
||||||
unsigned char hash1[32];
|
unsigned char hash1[32];
|
||||||
unsigned char hash2[32];
|
unsigned char hash2[32];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user