From 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:53:53 +0100 Subject: Update/gnulib 2026 03 (#2247) * Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers --- gl/sha256-stream.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gl/sha256-stream.c') diff --git a/gl/sha256-stream.c b/gl/sha256-stream.c index e2668078..011b36e2 100644 --- a/gl/sha256-stream.c +++ b/gl/sha256-stream.c @@ -1,7 +1,7 @@ /* sha256.c - Functions to compute SHA256 and SHA224 message digest of files or memory blocks according to the NIST specification FIPS-180-2. - Copyright (C) 2005-2006, 2008-2025 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2008-2026 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -67,7 +67,6 @@ shaxxx_stream (FILE *stream, char const *alg, void *resblock, /* We read the file in blocks of BLOCKSIZE bytes. One call of the computation function processes the whole buffer so that with the next round of the loop another block can be read. */ - size_t n; sum = 0; /* Read block. Take care for partial reads. */ @@ -77,11 +76,11 @@ shaxxx_stream (FILE *stream, char const *alg, void *resblock, or the fread() in afalg_stream may have gotten EOF. We need to avoid a subsequent fread() as EOF may not be sticky. For details of such systems, see: - https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */ + https://sourceware.org/PR1190 */ if (feof (stream)) goto process_partial_block; - n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); + size_t n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); sum += n; -- cgit v1.2.3-74-g34f1