From: Jim Meyering Date: Fri, 11 Oct 1996 04:43:40 +0000 (+0000) Subject: (md5_stream): Apply fix from Ralph Loader X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=691ec0286934a4d1b248d5d8c222cdf3d06501cc;p=pspp (md5_stream): Apply fix from Ralph Loader via Ulrich Drepper. --- diff --git a/lib/md5.c b/lib/md5.c index 42fc6de05f..7a01233e8c 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -108,7 +108,7 @@ md5_stream (stream, resblock) /* Read block. Take care for partial reads. */ do { - n = fread (buffer, 1, BLOCKSIZE - sum, stream); + n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); sum += n; }