aboutsummaryrefslogtreecommitdiffstats
path: root/digest.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 10:09:33 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 10:09:52 +0200
commit871a9a1aaa59a9a857078b7a1fb734d0ef849e9d (patch)
tree0d177786a5d7747319bc11a86ed5f4d4fc99cf8c /digest.c
parentEmpty signed commit (diff)
downloadlibsha1-871a9a1aaa59a9a857078b7a1fb734d0ef849e9d.tar.gz
libsha1-871a9a1aaa59a9a857078b7a1fb734d0ef849e9d.tar.bz2
libsha1-871a9a1aaa59a9a857078b7a1fb734d0ef849e9d.tar.xz
Bug and warning fix1.1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
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;
}