Commit abae6b983a7ccf7d37aeab9272b4cb8cea7a113a

Denis Ahrens 2012-12-13T00:21:21

driver-ztex: use the correct size for the swap array

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-ztex.c b/driver-ztex.c
index 2b8d82e..ba3e7bb 100644
--- a/driver-ztex.c
+++ b/driver-ztex.c
@@ -151,7 +151,7 @@ static bool ztex_checkNonce(struct libztex_device *ztex,
                             struct libztex_hash_data *hdata)
 {
 	uint32_t *data32 = (uint32_t *)(work->data);
-	unsigned char swap[128];
+	unsigned char swap[80];
 	uint32_t *swap32 = (uint32_t *)swap;
 	unsigned char hash1[32];
 	unsigned char hash2[32];