1
0
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:
Kano 2013-09-19 23:23:36 +10:00
parent 9b6ae5bc42
commit 7cbe0dbf39

View File

@ -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));