mirror of
https://github.com/emn178/js-sha3.git
synced 2026-08-12 19:41:36 +08:00
Fix error in arrayBuffer when there are extra bytes (#37)
This commit is contained in:
+1
-1
@@ -399,7 +399,7 @@
|
||||
}
|
||||
}
|
||||
if (extraBytes) {
|
||||
array[i] = s[i];
|
||||
array[j] = s[i];
|
||||
buffer = buffer.slice(0, bytes);
|
||||
}
|
||||
return buffer;
|
||||
|
||||
Reference in New Issue
Block a user