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