aboutsummaryrefslogtreecommitdiffstats
path: root/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'digest.c')
-rw-r--r--digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digest.c b/digest.c
index 2a611d6..fa3ebfa 100644
--- a/digest.c
+++ b/digest.c
@@ -11,7 +11,7 @@ libsha2_digest(struct libsha2_state *restrict state, const void *message_, size_
if (msglen & ~(size_t)7) {
libsha2_update(state, message, msglen & ~(size_t)7);
- message += msglen & ~(size_t)7;
+ message += msglen >> 3;
msglen &= (size_t)7;
}