diff options
| -rw-r--r-- | inflate.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -884,12 +884,12 @@ int ZEXPORT inflate(z_streamp strm, int flush) { | |||
| 884 | if (copy > have) copy = have; | 884 | if (copy > have) copy = have; |
| 885 | if (copy > left) copy = left; | 885 | if (copy > left) copy = left; |
| 886 | if (copy == 0) goto inf_leave; | 886 | if (copy == 0) goto inf_leave; |
| 887 | zmemcpy(put, next, copy); | ||
| 887 | have -= copy; | 888 | have -= copy; |
| 889 | next += copy; | ||
| 888 | left -= copy; | 890 | left -= copy; |
| 891 | put += copy; | ||
| 889 | state->length -= copy; | 892 | state->length -= copy; |
| 890 | do { | ||
| 891 | *put++ = *next++; | ||
| 892 | } while (--copy); | ||
| 893 | break; | 893 | break; |
| 894 | } | 894 | } |
| 895 | Tracev((stderr, "inflate: stored end\n")); | 895 | Tracev((stderr, "inflate: stored end\n")); |
