Browse Source

Merge commit 'ef54de1' into cg_merges_20131108a

Luke Dashjr 12 years ago
parent
commit
36745f4b2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-klondike.c

+ 1 - 1
driver-klondike.c

@@ -236,7 +236,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));