Commit 57cdb42781b294c248d970bd5da1c33848d3ba79

Con Kolivas 2014-07-03T06:49:05

Merge pull request #621 from dajohi/master Fix an off-by-one.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 7864d60..9ecfa3e 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2111,7 +2111,7 @@ static void gbt_merkle_bins(struct pool *pool, json_t *transaction_arr)
 	memset(hashbin, 0, 32);
 	binleft = binlen / 32;
 	if (pool->transactions) {
-		int len = 1, ofs = 0;
+		int len = 0, ofs = 0;
 		const char *txn;
 
 		for (i = 0; i < pool->transactions; i++) {