aboutsummaryrefslogtreecommitdiffstats
path: root/update.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.c b/update.c
index 1725eb8..8799061 100644
--- a/update.c
+++ b/update.c
@@ -21,7 +21,7 @@ libsha1_update(struct libsha1_state *restrict state, const void *restrict messag
if (off) {
n = msglen < sizeof(state->chunk) - off ? msglen : sizeof(state->chunk) - off;
- memcpy(state->chunk + off, message, n);
+ memcpy(&state->chunk[off], message, n);
if (off + n == sizeof(state->chunk))
libsha1_process(state, state->chunk);
message += n;