diff options
Diffstat (limited to 'ext/zip/lib/zip_filerange_crc.c')
-rw-r--r-- | ext/zip/lib/zip_filerange_crc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/zip/lib/zip_filerange_crc.c b/ext/zip/lib/zip_filerange_crc.c index c7bd1e8a4a..68b2ce1521 100644 --- a/ext/zip/lib/zip_filerange_crc.c +++ b/ext/zip/lib/zip_filerange_crc.c @@ -17,7 +17,7 @@ 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. - + THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE @@ -31,7 +31,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + #include <stdio.h> #include <errno.h> @@ -39,7 +39,7 @@ #include "zipint.h" - + int _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, @@ -54,7 +54,7 @@ _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, _zip_error_set(errp, ZIP_ER_SEEK, errno); return -1; } - + while (len > 0) { n = len > BUFSIZE ? BUFSIZE : (size_t)len; if ((n=fread(buf, 1, n, fp)) == 0) { |