synk

synchronize files between hosts
Log | Files | Refs | README | LICENSE

commit 2481dadd4fb2e8b42866d81fa5ae5c600121f021
parent 10e495a116df71afd7de3190ad207955889b010b
Author: Willy <willyatmailoodotorg>
Date:   Tue Sep  6 08:34:18 +0200

Lower sha512 buffer size

Diffstat:
sha512.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sha512.c b/sha512.c @@ -288,14 +288,14 @@ sha512(FILE *stream, unsigned char *hash) { sha512_state md; size_t len = 0; - unsigned char buf[128]; + unsigned char buf[127]; if (sha512_init(&md) != 0) { perror("sha512_init"); return 1; } - while ((len = fread(buf, 128, 1, stream)) > 0) { + while ((len = fread(buf, 127, 1, stream)) > 0) { if (sha512_process(&md, buf, len) != 0) { return 1; }