Browse Source

Fix bug in undefer_input() that misplaced the input state.

pull/831/head
npt-1707 9 months ago
parent
commit
06e7461ebd
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      deps/unzipfx/fileio.c

+ 2
- 0
deps/unzipfx/fileio.c View File

@@ -532,6 +532,8 @@ void undefer_input(__G)
* before calling undefer_input() when (G.incnt_leftover > 0) * before calling undefer_input() when (G.incnt_leftover > 0)
* (single exception: see read_byte()'s "G.csize <= 0" handling) !! * (single exception: see read_byte()'s "G.csize <= 0" handling) !!
*/ */
if (G.csize < 0L)
G.csize = 0L;
G.incnt = G.incnt_leftover + (int)G.csize; G.incnt = G.incnt_leftover + (int)G.csize;
G.inptr = G.inptr_leftover - (int)G.csize; G.inptr = G.inptr_leftover - (int)G.csize;
G.incnt_leftover = 0; G.incnt_leftover = 0;


Loading…
Cancel
Save