Browse Source

Target should only be 32 bytes copied.

Con Kolivas 13 years ago
parent
commit
8893f7ab23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
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)