Commit f4892a43a2c388ea13c6ac58487dc3dbf6d31e37

Con Kolivas 2013-03-05T22:54:51

Merge pull request #397 from kanoi/bflsc usbutils.c copy full size to 'Last Command'

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index a4527a8..06cb9c1 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1334,7 +1334,7 @@ static void stats(struct cgpu_info *cgpu, struct timeval *tv_start, struct timev
 		details->item[item].max_delay = diff;
 
 	details->item[item].total_delay += diff;
-	memcpy(&(details->item[item].last), tv_start, sizeof(tv_start));
+	memcpy(&(details->item[item].last), tv_start, sizeof(*tv_start));
 	details->item[item].count++;
 }