diff -c org/gzio.c new/gzio.c *** org/gzio.c Wed Dec 01 15:26:09 2004 --- new/gzio.c Sun Feb 06 06:44:22 2005 *************** *** 264,270 **** if (s->z_eof) return EOF; if (s->stream.avail_in == 0) { errno = 0; ! s->stream.avail_in = fread(s->inbuf, 1, Z_BUFSIZE, s->file); if (s->stream.avail_in == 0) { s->z_eof = 1; if (ferror(s->file)) s->z_err = Z_ERRNO; --- 264,270 ---- if (s->z_eof) return EOF; if (s->stream.avail_in == 0) { errno = 0; ! s->stream.avail_in = (uInt)fread(s->inbuf, 1, Z_BUFSIZE, s->file); if (s->stream.avail_in == 0) { s->z_eof = 1; if (ferror(s->file)) s->z_err = Z_ERRNO; *************** *** 300,306 **** if (len < 2) { if (len) s->inbuf[0] = s->stream.next_in[0]; errno = 0; ! len = fread(s->inbuf + len, 1, Z_BUFSIZE >> len, s->file); if (len == 0 && ferror(s->file)) s->z_err = Z_ERRNO; s->stream.avail_in += len; s->stream.next_in = s->inbuf; --- 300,306 ---- if (len < 2) { if (len) s->inbuf[0] = s->stream.next_in[0]; errno = 0; ! len = (uInt)fread(s->inbuf + len, 1, Z_BUFSIZE >> len, s->file); if (len == 0 && ferror(s->file)) s->z_err = Z_ERRNO; s->stream.avail_in += len; s->stream.next_in = s->inbuf; *************** *** 436,442 **** s->stream.avail_in -= n; } if (s->stream.avail_out > 0) { ! s->stream.avail_out -= fread(next_out, 1, s->stream.avail_out, s->file); } len -= s->stream.avail_out; --- 436,442 ---- s->stream.avail_in -= n; } if (s->stream.avail_out > 0) { ! s->stream.avail_out -= (uInt)fread(next_out, 1, s->stream.avail_out, s->file); } len -= s->stream.avail_out; *************** *** 448,454 **** if (s->stream.avail_in == 0 && !s->z_eof) { errno = 0; ! s->stream.avail_in = fread(s->inbuf, 1, Z_BUFSIZE, s->file); if (s->stream.avail_in == 0) { s->z_eof = 1; if (ferror(s->file)) { --- 448,454 ---- if (s->stream.avail_in == 0 && !s->z_eof) { errno = 0; ! s->stream.avail_in = (uInt)fread(s->inbuf, 1, Z_BUFSIZE, s->file); if (s->stream.avail_in == 0) { s->z_eof = 1; if (ferror(s->file)) { diff -c org/inflate.c new/inflate.c *** org/inflate.c Sat Nov 13 06:49:43 2004 --- new/inflate.c Sun Feb 06 06:45:10 2005 *************** *** 1338,1344 **** copy->distcode = copy->codes + (state->distcode - state->codes); copy->next = copy->codes + (state->next - state->codes); if (window != Z_NULL) ! zmemcpy(window, state->window, 1U << state->wbits); copy->window = window; dest->state = (voidpf)copy; return Z_OK; --- 1338,1344 ---- copy->distcode = copy->codes + (state->distcode - state->codes); copy->next = copy->codes + (state->next - state->codes); if (window != Z_NULL) ! zmemcpy(window, state->window, (size_t)(1U << state->wbits)); copy->window = window; dest->state = (voidpf)copy; return Z_OK; diff -c org/inftrees.c new/inftrees.c *** org/inftrees.c Sun Oct 31 18:54:29 2004 --- new/inftrees.c Sun Feb 06 06:44:33 2005 *************** *** 262,268 **** drop = root; /* increment past last table */ ! next += 1U << curr; /* determine length of next table */ curr = len - drop; --- 262,268 ---- drop = root; /* increment past last table */ ! next += (size_t)(1U << curr); /* determine length of next table */ curr = len - drop; diff -c org/minigzip.c new/minigzip.c *** org/minigzip.c Sun Oct 24 02:12:49 2004 --- new/minigzip.c Sun Feb 06 06:32:58 2005 *************** *** 274,280 **** gzFile file; char outmode[20]; ! strcpy(outmode, "wb6 "); prog = argv[0]; argc--, argv++; --- 274,280 ---- gzFile file; char outmode[20]; ! strcpy(outmode, "wb"); prog = argv[0]; argc--, argv++;