mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
klondike use a memcpy
This commit is contained in:
parent
e8d49bc0bb
commit
ef54de1dd3
@ -172,7 +172,7 @@ static bool klondike_get_stats(struct cgpu_info *klncgpu)
|
||||
for (dev = 0; dev <= slaves; dev++) {
|
||||
char *reply = SendCmdGetReply(klncgpu, 'S', dev, 0, NULL);
|
||||
if (reply != NULL)
|
||||
klninfo->status[dev] = *(WORKSTATUS *)(reply+2);
|
||||
memcpy((void *)(&(klninfo->status[dev])), reply+2, sizeof(klninfo->status[dev]));
|
||||
}
|
||||
wr_unlock(&(klninfo->stat_lock));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user