From 8893f7ab233198baa4c6e99071d2f854e4cc6815 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 6 Oct 2012 01:13:52 +1000 Subject: [PATCH] Target should only be 32 bytes copied. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index f6798560..01527bcf 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4516,7 +4516,7 @@ static void set_work_target(struct work *work, int diff) free(htarget); } } - memcpy(work->target, target, 256); + memcpy(work->target, target, 32); } static void gen_stratum_work(struct pool *pool, struct work *work)