aboutsummaryrefslogtreecommitdiffstats
path: root/c/sha3.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/sha3.c')
-rw-r--r--c/sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/sha3.c b/c/sha3.c
index b3c06e6..5f5a25b 100644
--- a/c/sha3.c
+++ b/c/sha3.c
@@ -396,7 +396,7 @@ extern void update(byte* msg, long msglen)
long i;
if (mptr + msglen > mlen)
- System.arraycopy(M, 0, M = new byte[(mlen += msglen) << 1], 0, mptr);
+ System.arraycopy(M, 0, M = new byte[mlen = mlen + msglen << 1], 0, mptr);
arraycopy(msg, 0, M, mptr, msglen);
long len = mptr += msglen;
len -= len % ((r * b) >> 3);